Commit 6794c50d authored by Bastien Nocera's avatar Bastien Nocera Committed by Bastien Nocera

gray out the menu item rather than just the submenus items when no

2005-05-22  Bastien Nocera  <hadess@hadess.net>

	* data/totem.glade:
	* src/totem-menu.c: (totem_languages_update),
	(totem_subtitles_update): gray out the menu item rather than
	just the submenus items when no subtitles or languages are
	available (Closes: #170794)
parent 5578eaa4
2005-05-22 Bastien Nocera <hadess@hadess.net>
* data/totem.glade:
* src/totem-menu.c: (totem_languages_update),
(totem_subtitles_update): gray out the menu item rather than
just the submenus items when no subtitles or languages are
available (Closes: #170794)
2005-05-21 Bastien Nocera <hadess@hadess.net>
* src/plparse/totem-disc.c: (cd_cache_new),
......
......@@ -486,6 +486,10 @@ Intranet/LAN</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="padding">0</property>
......@@ -513,6 +517,10 @@ Intranet/LAN</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="padding">0</property>
......@@ -541,6 +549,10 @@ Intranet/LAN</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="mnemonic_widget">font_sel_button</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="padding">0</property>
......@@ -2293,6 +2305,7 @@ AC3 Passthrough</property>
<child>
<widget class="GtkMenuItem" id="tmw_subtitles_menu_item">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="tooltip" translatable="yes">Subtitles</property>
<property name="label" translatable="yes">S_ubtitles</property>
<property name="use_underline">True</property>
......@@ -2601,6 +2614,7 @@ AC3 Passthrough</property>
<child>
<widget class="GtkMenuItem" id="tmw_languages_menu_item">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="tooltip" translatable="yes">Languages</property>
<property name="label" translatable="yes">_Languages</property>
<property name="use_underline">True</property>
......
......@@ -355,6 +355,7 @@ totem_languages_update (Totem *totem, GList *list)
gtk_menu_item_set_submenu (GTK_MENU_ITEM (item), lang_menu);
totem->languages = lang_menu;
}
gtk_widget_set_sensitive (item, lang_menu != NULL);
totem_g_list_deep_free (totem->language_list);
totem->language_list = list;
......@@ -385,6 +386,7 @@ totem_subtitles_update (Totem *totem, GList *list)
gtk_menu_item_set_submenu (GTK_MENU_ITEM (item), sub_menu);
totem->subtitles = sub_menu;
}
gtk_widget_set_sensitive (item, sub_menu != NULL);
totem_g_list_deep_free (totem->subtitles_list);
totem->subtitles_list = list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment