[gnome-latex/gnome-3-28] LaTeX commands: Avoid superfluous and fatal cast to Gtk.Activatable
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex/gnome-3-28] LaTeX commands: Avoid superfluous and fatal cast to Gtk.Activatable
- Date: Wed, 9 May 2018 10:31:46 +0000 (UTC)
commit c56caaa516c8371a6ac179661978b720a731fd65
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue May 8 17:15:42 2018 +0200
LaTeX commands: Avoid superfluous and fatal cast to Gtk.Activatable
Fixes https://gitlab.gnome.org/GNOME/gnome-latex/issues/58
See also:
https://bugzilla.gnome.org/show_bug.cgi?id=795920
src/latex_menu.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/latex_menu.vala b/src/latex_menu.vala
index 18eb306..0b3ffee 100644
--- a/src/latex_menu.vala
+++ b/src/latex_menu.vala
@@ -835,7 +835,7 @@ public class LatexMenu : Gtk.ActionGroup
private Gtk.Action get_menu_tool_action (string name, string? label, string? icon_name)
{
Gtk.Action action = new MenuToolAction (name, label, label, icon_name);
- Activatable menu_tool_button = (Activatable) new MenuToolButton (null, null);
+ MenuToolButton menu_tool_button = new MenuToolButton (null, null);
menu_tool_button.set_related_action (action);
return action;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]