Commit d8d83737 authored by Sam Hocevar's avatar Sam Hocevar

* ./modules/gui/gtk/gnome.glade, ./modules/gui/gtk/gtk.glade: moved the

    Audio and Subtitles submenus into the Audio and Video menus.
parent 05422a3f
...@@ -197,18 +197,6 @@ ...@@ -197,18 +197,6 @@
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget>
<class>GtkMenuItem</class>
<name>menubar_fullscreen</name>
<signal>
<name>activate</name>
<handler>GtkFullscreen</handler>
<last_modification_time>Sat, 19 May 2001 16:28:15 GMT</last_modification_time>
</signal>
<label>_Fullscreen</label>
<right_justify>False</right_justify>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>separator9</name> <name>separator9</name>
...@@ -301,30 +289,6 @@ ...@@ -301,30 +289,6 @@
<class>GtkMenu</class> <class>GtkMenu</class>
<name>menubar_settings_menu</name> <name>menubar_settings_menu</name>
<widget>
<class>GtkMenuItem</class>
<name>menubar_audio</name>
<sensitive>False</sensitive>
<tooltip>Select audio channel</tooltip>
<label>_Audio</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>menubar_subpictures</name>
<sensitive>False</sensitive>
<tooltip>Select subtitles channel</tooltip>
<label>_Subtitles</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>separator5</name>
<right_justify>False</right_justify>
</widget>
<widget> <widget>
<class>GtkPixmapMenuItem</class> <class>GtkPixmapMenuItem</class>
<name>menubar_preferences</name> <name>menubar_preferences</name>
...@@ -348,6 +312,21 @@ ...@@ -348,6 +312,21 @@
<class>GtkMenu</class> <class>GtkMenu</class>
<name>menubar_config_audio_menu</name> <name>menubar_config_audio_menu</name>
<widget>
<class>GtkMenuItem</class>
<name>menubar_audio</name>
<sensitive>False</sensitive>
<tooltip>Select audio channel</tooltip>
<label>_Language</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>separator25</name>
<right_justify>False</right_justify>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>menubar_volume_up</name> <name>menubar_volume_up</name>
...@@ -418,8 +397,34 @@ ...@@ -418,8 +397,34 @@
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>menubar_video_device</name> <name>menubar_subpictures</name>
<label>Screen</label> <sensitive>False</sensitive>
<tooltip>Select subtitles channel</tooltip>
<label>_Subtitles</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>separator23</name>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>menubar_fullscreen</name>
<signal>
<name>activate</name>
<handler>GtkFullscreen</handler>
<last_modification_time>Sat, 19 May 2001 16:28:15 GMT</last_modification_time>
</signal>
<label>_Fullscreen</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>separator24</name>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
...@@ -429,6 +434,13 @@ ...@@ -429,6 +434,13 @@
<label>Deinterlace</label> <label>Deinterlace</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget>
<class>GtkMenuItem</class>
<name>menubar_video_device</name>
<label>Screen</label>
<right_justify>False</right_justify>
</widget>
</widget> </widget>
</widget> </widget>
...@@ -1184,46 +1196,90 @@ ...@@ -1184,46 +1196,90 @@
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_interface_toggle</name> <name>popup_next</name>
<signal> <signal>
<name>activate</name> <name>activate</name>
<handler>GtkWindowToggle</handler> <handler>GtkPlaylistNext</handler>
<last_modification_time>Sat, 19 May 2001 16:18:51 GMT</last_modification_time> <last_modification_time>Sat, 19 May 2001 16:19:18 GMT</last_modification_time>
</signal> </signal>
<label>Toggle _Interface</label> <label>Next</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_fullscreen</name> <name>popup_prev</name>
<tooltip>Toggle fullscreen mode</tooltip>
<signal> <signal>
<name>activate</name> <name>activate</name>
<handler>GtkFullscreen</handler> <handler>GtkPlaylistPrev</handler>
<last_modification_time>Sat, 19 May 2001 16:19:07 GMT</last_modification_time> <last_modification_time>Sat, 19 May 2001 16:19:26 GMT</last_modification_time>
</signal> </signal>
<label>_Fullscreen</label> <label>Prev</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkPixmapMenuItem</class>
<name>popup_jump</name>
<tooltip>Got directly so specified point</tooltip>
<signal>
<name>activate</name>
<handler>GtkJumpShow</handler>
<last_modification_time>Sat, 19 May 2001 16:34:46 GMT</last_modification_time>
</signal>
<label>_Jump...</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_JUMP_TO</stock_icon>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_video_device</name> <name>separator17</name>
<label>Screen</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_deinterlace</name> <name>popup_program</name>
<label>Deinterlace</label> <sensitive>False</sensitive>
<tooltip>Switch program</tooltip>
<label>Program</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkPixmapMenuItem</class>
<name>popup_navigation</name>
<sensitive>False</sensitive>
<tooltip>Navigate through titles and chapters</tooltip>
<label>_Navigation</label>
<right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_SEARCH</stock_icon>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>audio1</name>
<label>Audio</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
<widget>
<class>GtkMenu</class>
<name>audio1_menu</name>
<widget>
<class>GtkPixmapMenuItem</class>
<name>popup_audio</name>
<sensitive>False</sensitive>
<tooltip>Select audio channel</tooltip>
<label>_Language</label>
<right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_VOLUME</stock_icon>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>separator8</name> <name>separator20</name>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
...@@ -1263,6 +1319,12 @@ ...@@ -1263,6 +1319,12 @@
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget>
<class>GtkMenuItem</class>
<name>separator21</name>
<right_justify>False</right_justify>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_audio_channels</name> <name>popup_audio_channels</name>
...@@ -1276,88 +1338,68 @@ ...@@ -1276,88 +1338,68 @@
<label>Device</label> <label>Device</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
</widget>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>separator17</name> <name>video1</name>
<label>Video</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenu</class>
<name>popup_next</name> <name>video1_menu</name>
<signal>
<name>activate</name> <widget>
<handler>GtkPlaylistNext</handler> <class>GtkPixmapMenuItem</class>
<last_modification_time>Sat, 19 May 2001 16:19:18 GMT</last_modification_time> <name>popup_subpictures</name>
</signal> <sensitive>False</sensitive>
<label>Next</label> <tooltip>Select subtitles channel</tooltip>
<label>_Subtitles</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_FONT</stock_icon>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_prev</name> <name>separator18</name>
<signal>
<name>activate</name>
<handler>GtkPlaylistPrev</handler>
<last_modification_time>Sat, 19 May 2001 16:19:26 GMT</last_modification_time>
</signal>
<label>Prev</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkPixmapMenuItem</class> <class>GtkMenuItem</class>
<name>popup_jump</name> <name>popup_fullscreen</name>
<tooltip>Got directly so specified point</tooltip> <tooltip>Toggle fullscreen mode</tooltip>
<signal> <signal>
<name>activate</name> <name>activate</name>
<handler>GtkJumpShow</handler> <handler>GtkFullscreen</handler>
<last_modification_time>Sat, 19 May 2001 16:34:46 GMT</last_modification_time> <last_modification_time>Sat, 19 May 2001 16:19:07 GMT</last_modification_time>
</signal> </signal>
<label>_Jump...</label> <label>_Fullscreen</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_JUMP_TO</stock_icon>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_program</name> <name>separator19</name>
<sensitive>False</sensitive>
<tooltip>Switch program</tooltip>
<label>Program</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkPixmapMenuItem</class> <class>GtkMenuItem</class>
<name>popup_navigation</name> <name>popup_deinterlace</name>
<sensitive>False</sensitive> <label>Deinterlace</label>
<tooltip>Navigate through titles and chapters</tooltip>
<label>_Navigation</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_SEARCH</stock_icon>
</widget> </widget>
<widget> <widget>
<class>GtkPixmapMenuItem</class> <class>GtkMenuItem</class>
<name>popup_audio</name> <name>popup_video_device</name>
<sensitive>False</sensitive> <label>Screen</label>
<tooltip>Select audio channel</tooltip>
<label>_Audio</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_VOLUME</stock_icon>
</widget> </widget>
</widget>
<widget>
<class>GtkPixmapMenuItem</class>
<name>popup_subpictures</name>
<sensitive>False</sensitive>
<tooltip>Select subtitles channel</tooltip>
<label>_Subtitles</label>
<right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_FONT</stock_icon>
</widget> </widget>
<widget> <widget>
...@@ -1436,6 +1478,18 @@ ...@@ -1436,6 +1478,18 @@
</widget> </widget>
</widget> </widget>
<widget>
<class>GtkMenuItem</class>
<name>popup_interface_toggle</name>
<signal>
<name>activate</name>
<handler>GtkWindowToggle</handler>
<last_modification_time>Sat, 19 May 2001 16:18:51 GMT</last_modification_time>
</signal>
<label>Toggle _Interface</label>
<right_justify>False</right_justify>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_playlist</name> <name>popup_playlist</name>
......
...@@ -59,13 +59,6 @@ static GnomeUIInfo menubar_view_menu_uiinfo[] = ...@@ -59,13 +59,6 @@ static GnomeUIInfo menubar_view_menu_uiinfo[] =
GNOME_APP_PIXMAP_NONE, NULL, GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL 0, (GdkModifierType) 0, NULL
}, },
{
GNOME_APP_UI_ITEM, N_("_Fullscreen"),
NULL,
(gpointer) GtkFullscreen, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_SEPARATOR, GNOMEUIINFO_SEPARATOR,
{ {
GNOME_APP_UI_ITEM, N_("Progr_am"), GNOME_APP_UI_ITEM, N_("Progr_am"),
...@@ -114,28 +107,21 @@ static GnomeUIInfo menubar_view_menu_uiinfo[] = ...@@ -114,28 +107,21 @@ static GnomeUIInfo menubar_view_menu_uiinfo[] =
}; };
static GnomeUIInfo menubar_settings_menu_uiinfo[] = static GnomeUIInfo menubar_settings_menu_uiinfo[] =
{
GNOMEUIINFO_MENU_PREFERENCES_ITEM (GtkPreferencesShow, NULL),
GNOMEUIINFO_END
};
static GnomeUIInfo menubar_config_audio_menu_uiinfo[] =
{ {
{ {
GNOME_APP_UI_ITEM, N_("_Audio"), GNOME_APP_UI_ITEM, N_("_Language"),
N_("Select audio channel"), N_("Select audio channel"),
(gpointer) NULL, NULL, NULL, (gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL, GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL 0, (GdkModifierType) 0, NULL
}, },
{
GNOME_APP_UI_ITEM, N_("_Subtitles"),
N_("Select subtitles channel"),
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_SEPARATOR, GNOMEUIINFO_SEPARATOR,
GNOMEUIINFO_MENU_PREFERENCES_ITEM (GtkPreferencesShow, NULL),
GNOMEUIINFO_END
};
static GnomeUIInfo menubar_config_audio_menu_uiinfo[] =
{
{ {
GNOME_APP_UI_ITEM, N_("Volume Up"), GNOME_APP_UI_ITEM, N_("Volume Up"),
NULL, NULL,
...@@ -178,12 +164,21 @@ static GnomeUIInfo menubar_config_audio_menu_uiinfo[] = ...@@ -178,12 +164,21 @@ static GnomeUIInfo menubar_config_audio_menu_uiinfo[] =
static GnomeUIInfo menubar_config_video_menu_menu_uiinfo[] = static GnomeUIInfo menubar_config_video_menu_menu_uiinfo[] =
{ {
{ {
GNOME_APP_UI_ITEM, N_("Screen"), GNOME_APP_UI_ITEM, N_("_Subtitles"),
NULL, N_("Select subtitles channel"),
(gpointer) NULL, NULL, NULL, (gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL, GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL 0, (GdkModifierType) 0, NULL
}, },
GNOMEUIINFO_SEPARATOR,
{
GNOME_APP_UI_ITEM, N_("_Fullscreen"),
NULL,
(gpointer) GtkFullscreen, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_SEPARATOR,
{ {
GNOME_APP_UI_ITEM, N_("Deinterlace"), GNOME_APP_UI_ITEM, N_("Deinterlace"),
NULL, NULL,
...@@ -191,6 +186,13 @@ static GnomeUIInfo menubar_config_video_menu_menu_uiinfo[] = ...@@ -191,6 +186,13 @@ static GnomeUIInfo menubar_config_video_menu_menu_uiinfo[] =
GNOME_APP_PIXMAP_NONE, NULL, GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL 0, (GdkModifierType) 0, NULL
}, },
{
GNOME_APP_UI_ITEM, N_("Screen"),
NULL,
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_END GNOMEUIINFO_END
}; };
...@@ -342,52 +344,47 @@ create_intf_window (void) ...@@ -342,52 +344,47 @@ create_intf_window (void)
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_view_menu_uiinfo[1].widget); gtk_widget_ref (menubar_view_menu_uiinfo[1].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_fullscreen", gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator9",
menubar_view_menu_uiinfo[1].widget, menubar_view_menu_uiinfo[1].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_view_menu_uiinfo[2].widget); gtk_widget_ref (menubar_view_menu_uiinfo[2].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator9", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_program",
menubar_view_menu_uiinfo[2].widget, menubar_view_menu_uiinfo[2].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (menubar_view_menu_uiinfo[2].widget, FALSE);
gtk_widget_ref (menubar_view_menu_uiinfo[3].widget); gtk_widget_ref (menubar_view_menu_uiinfo[3].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_program", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_title",
menubar_view_menu_uiinfo[3].widget, menubar_view_menu_uiinfo[3].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (menubar_view_menu_uiinfo[3].widget, FALSE); gtk_widget_set_sensitive (menubar_view_menu_uiinfo[3].widget, FALSE);
gtk_widget_ref (menubar_view_menu_uiinfo[4].widget); gtk_widget_ref (menubar_view_menu_uiinfo[4].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_title", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_chapter",
menubar_view_menu_uiinfo[4].widget, menubar_view_menu_uiinfo[4].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (menubar_view_menu_uiinfo[4].widget, FALSE); gtk_widget_set_sensitive (menubar_view_menu_uiinfo[4].widget, FALSE);
gtk_widget_ref (menubar_view_menu_uiinfo[5].widget); gtk_widget_ref (menubar_view_menu_uiinfo[5].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_chapter", gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator7",
menubar_view_menu_uiinfo[5].widget, menubar_view_menu_uiinfo[5].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (menubar_view_menu_uiinfo[5].widget, FALSE);
gtk_widget_ref (menubar_view_menu_uiinfo[6].widget); gtk_widget_ref (menubar_view_menu_uiinfo[6].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator7", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_playlist",
menubar_view_menu_uiinfo[6].widget, menubar_view_menu_uiinfo[6].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_view_menu_uiinfo[7].widget); gtk_widget_ref (menubar_view_menu_uiinfo[7].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_playlist", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_modules",
menubar_view_menu_uiinfo[7].widget, menubar_view_menu_uiinfo[7].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (menubar_view_menu_uiinfo[7].widget, FALSE);
gtk_widget_ref (menubar_view_menu_uiinfo[8].widget); gtk_widget_ref (menubar_view_menu_uiinfo[8].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_modules",
menubar_view_menu_uiinfo[8].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (menubar_view_menu_uiinfo[8].widget, FALSE);
gtk_widget_ref (menubar_view_menu_uiinfo[9].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_messages", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_messages",
menubar_view_menu_uiinfo[9].widget, menubar_view_menu_uiinfo[8].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_uiinfo[2].widget); gtk_widget_ref (menubar_uiinfo[2].widget);
...@@ -396,25 +393,8 @@ create_intf_window (void) ...@@ -396,25 +393,8 @@ create_intf_window (void)
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_settings_menu_uiinfo[0].widget); gtk_widget_ref (menubar_settings_menu_uiinfo[0].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio",
menubar_settings_menu_uiinfo[0].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (menubar_settings_menu_uiinfo[0].widget, FALSE);
gtk_widget_ref (menubar_settings_menu_uiinfo[1].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_subpictures",
menubar_settings_menu_uiinfo[1].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (menubar_settings_menu_uiinfo[1].widget, FALSE);
gtk_widget_ref (menubar_settings_menu_uiinfo[2].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator5",
menubar_settings_menu_uiinfo[2].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_settings_menu_uiinfo[3].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_preferences", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_preferences",
menubar_settings_menu_uiinfo[3].widget, menubar_settings_menu_uiinfo[0].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_uiinfo[3].widget); gtk_widget_ref (menubar_uiinfo[3].widget);
...@@ -423,50 +403,82 @@ create_intf_window (void) ...@@ -423,50 +403,82 @@ create_intf_window (void)
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_audio_menu_uiinfo[0].widget); gtk_widget_ref (menubar_config_audio_menu_uiinfo[0].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_up", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio",
menubar_config_audio_menu_uiinfo[0].widget, menubar_config_audio_menu_uiinfo[0].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (menubar_config_audio_menu_uiinfo[0].widget, FALSE);
gtk_widget_ref (menubar_config_audio_menu_uiinfo[1].widget); gtk_widget_ref (menubar_config_audio_menu_uiinfo[1].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_down", gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator25",
menubar_config_audio_menu_uiinfo[1].widget, menubar_config_audio_menu_uiinfo[1].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_audio_menu_uiinfo[2].widget); gtk_widget_ref (menubar_config_audio_menu_uiinfo[2].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_mute", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_up",
menubar_config_audio_menu_uiinfo[2].widget, menubar_config_audio_menu_uiinfo[2].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_audio_menu_uiinfo[3].widget); gtk_widget_ref (menubar_config_audio_menu_uiinfo[3].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator16", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_down",
menubar_config_audio_menu_uiinfo[3].widget, menubar_config_audio_menu_uiinfo[3].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_audio_menu_uiinfo[4].widget); gtk_widget_ref (menubar_config_audio_menu_uiinfo[4].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio_channels", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_mute",
menubar_config_audio_menu_uiinfo[4].widget, menubar_config_audio_menu_uiinfo[4].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_audio_menu_uiinfo[5].widget); gtk_widget_ref (menubar_config_audio_menu_uiinfo[5].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio_device", gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator16",
menubar_config_audio_menu_uiinfo[5].widget, menubar_config_audio_menu_uiinfo[5].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_audio_menu_uiinfo[6].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio_channels",
menubar_config_audio_menu_uiinfo[6].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_audio_menu_uiinfo[7].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio_device",
menubar_config_audio_menu_uiinfo[7].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_uiinfo[4].widget); gtk_widget_ref (menubar_uiinfo[4].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_config_video_menu", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_config_video_menu",
menubar_uiinfo[4].widget, menubar_uiinfo[4].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[0].widget); gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[0].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_video_device", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_subpictures",
menubar_config_video_menu_menu_uiinfo[0].widget, menubar_config_video_menu_menu_uiinfo[0].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (menubar_config_video_menu_menu_uiinfo[0].widget, FALSE);
gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[1].widget); gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[1].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_deinterlace", gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator23",
menubar_config_video_menu_menu_uiinfo[1].widget, menubar_config_video_menu_menu_uiinfo[1].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[2].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_fullscreen",
menubar_config_video_menu_menu_uiinfo[2].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[3].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator24",
menubar_config_video_menu_menu_uiinfo[3].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[4].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_deinterlace",
menubar_config_video_menu_menu_uiinfo[4].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[5].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_video_device",
menubar_config_video_menu_menu_uiinfo[5].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (menubar_uiinfo[5].widget); gtk_widget_ref (menubar_uiinfo[5].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_help", gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_help",
menubar_uiinfo[5].widget, menubar_uiinfo[5].widget,
...@@ -924,6 +936,90 @@ create_intf_window (void) ...@@ -924,6 +936,90 @@ create_intf_window (void)
return intf_window; return intf_window;
} }
static GnomeUIInfo audio1_menu_uiinfo[] =
{
{
GNOME_APP_UI_ITEM, N_("_Language"),
N_("Select audio channel"),
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_VOLUME,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_SEPARATOR,
{
GNOME_APP_UI_ITEM, N_("Volume Up"),
NULL,
(gpointer) GtkVolumeUp, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{
GNOME_APP_UI_ITEM, N_("Volume Down"),
NULL,
(gpointer) GtkVolumeDown, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{
GNOME_APP_UI_ITEM, N_("Mute"),
NULL,
(gpointer) GtkVolumeMute, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_SEPARATOR,
{
GNOME_APP_UI_ITEM, N_("Channels"),
NULL,
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{
GNOME_APP_UI_ITEM, N_("Device"),
NULL,
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_END
};
static GnomeUIInfo video1_menu_uiinfo[] =
{
{
GNOME_APP_UI_ITEM, N_("_Subtitles"),
N_("Select subtitles channel"),
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_FONT,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_SEPARATOR,
{
GNOME_APP_UI_ITEM, N_("_Fullscreen"),
N_("Toggle fullscreen mode"),
(gpointer) GtkFullscreen, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_SEPARATOR,
{
GNOME_APP_UI_ITEM, N_("Deinterlace"),
NULL,
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{
GNOME_APP_UI_ITEM, N_("Screen"),
NULL,
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_END
};
static GnomeUIInfo popup_file_menu_uiinfo[] = static GnomeUIInfo popup_file_menu_uiinfo[] =
{ {
{ {
...@@ -997,71 +1093,6 @@ static GnomeUIInfo intf_popup_uiinfo[] = ...@@ -997,71 +1093,6 @@ static GnomeUIInfo intf_popup_uiinfo[] =
0, (GdkModifierType) 0, NULL 0, (GdkModifierType) 0, NULL
}, },
GNOMEUIINFO_SEPARATOR, GNOMEUIINFO_SEPARATOR,
{
GNOME_APP_UI_ITEM, N_("Toggle _Interface"),
NULL,
(gpointer) GtkWindowToggle, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{
GNOME_APP_UI_ITEM, N_("_Fullscreen"),
N_("Toggle fullscreen mode"),
(gpointer) GtkFullscreen, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{
GNOME_APP_UI_ITEM, N_("Screen"),
NULL,
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{
GNOME_APP_UI_ITEM, N_("Deinterlace"),
NULL,
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_SEPARATOR,
{
GNOME_APP_UI_ITEM, N_("Volume Up"),
NULL,
(gpointer) GtkVolumeUp, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{
GNOME_APP_UI_ITEM, N_("Volume Down"),
NULL,
(gpointer) GtkVolumeDown, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{
GNOME_APP_UI_ITEM, N_("Mute"),
NULL,
(gpointer) GtkVolumeMute, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{
GNOME_APP_UI_ITEM, N_("Channels"),
NULL,
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{
GNOME_APP_UI_ITEM, N_("Device"),
NULL,
(gpointer) NULL, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
GNOMEUIINFO_SEPARATOR,
{ {
GNOME_APP_UI_ITEM, N_("Next"), GNOME_APP_UI_ITEM, N_("Next"),
NULL, NULL,
...@@ -1083,6 +1114,7 @@ static GnomeUIInfo intf_popup_uiinfo[] = ...@@ -1083,6 +1114,7 @@ static GnomeUIInfo intf_popup_uiinfo[] =
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_JUMP_TO, GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_JUMP_TO,
0, (GdkModifierType) 0, NULL 0, (GdkModifierType) 0, NULL
}, },
GNOMEUIINFO_SEPARATOR,
{ {
GNOME_APP_UI_ITEM, N_("Program"), GNOME_APP_UI_ITEM, N_("Program"),
N_("Switch program"), N_("Switch program"),
...@@ -1098,21 +1130,28 @@ static GnomeUIInfo intf_popup_uiinfo[] = ...@@ -1098,21 +1130,28 @@ static GnomeUIInfo intf_popup_uiinfo[] =
0, (GdkModifierType) 0, NULL 0, (GdkModifierType) 0, NULL
}, },
{ {
GNOME_APP_UI_ITEM, N_("_Audio"), GNOME_APP_UI_SUBTREE, N_("Audio"),
N_("Select audio channel"), NULL,
(gpointer) NULL, NULL, NULL, audio1_menu_uiinfo, NULL, NULL,
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_VOLUME, GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL 0, (GdkModifierType) 0, NULL
}, },
{ {
GNOME_APP_UI_ITEM, N_("_Subtitles"), GNOME_APP_UI_SUBTREE, N_("Video"),
N_("Select subtitles channel"), NULL,
(gpointer) NULL, NULL, NULL, video1_menu_uiinfo, NULL, NULL,
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_FONT, GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL 0, (GdkModifierType) 0, NULL
}, },
GNOMEUIINFO_SEPARATOR, GNOMEUIINFO_SEPARATOR,
GNOMEUIINFO_MENU_FILE_TREE (popup_file_menu_uiinfo), GNOMEUIINFO_MENU_FILE_TREE (popup_file_menu_uiinfo),
{
GNOME_APP_UI_ITEM, N_("Toggle _Interface"),
NULL,
(gpointer) GtkWindowToggle, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, (GdkModifierType) 0, NULL
},
{ {
GNOME_APP_UI_ITEM, N_("Playlist..."), GNOME_APP_UI_ITEM, N_("Playlist..."),
NULL, NULL,
...@@ -1173,107 +1212,127 @@ create_intf_popup (void) ...@@ -1173,107 +1212,127 @@ create_intf_popup (void)
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[7].widget); gtk_widget_ref (intf_popup_uiinfo[7].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_interface_toggle", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_next",
intf_popup_uiinfo[7].widget, intf_popup_uiinfo[7].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[8].widget); gtk_widget_ref (intf_popup_uiinfo[8].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_fullscreen", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_prev",
intf_popup_uiinfo[8].widget, intf_popup_uiinfo[8].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[9].widget); gtk_widget_ref (intf_popup_uiinfo[9].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_video_device", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_jump",
intf_popup_uiinfo[9].widget, intf_popup_uiinfo[9].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[10].widget); gtk_widget_ref (intf_popup_uiinfo[10].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_deinterlace", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator17",
intf_popup_uiinfo[10].widget, intf_popup_uiinfo[10].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[11].widget); gtk_widget_ref (intf_popup_uiinfo[11].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator8", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_program",
intf_popup_uiinfo[11].widget, intf_popup_uiinfo[11].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (intf_popup_uiinfo[11].widget, FALSE);
gtk_widget_ref (intf_popup_uiinfo[12].widget); gtk_widget_ref (intf_popup_uiinfo[12].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_up", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_navigation",
intf_popup_uiinfo[12].widget, intf_popup_uiinfo[12].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (intf_popup_uiinfo[12].widget, FALSE);
gtk_widget_ref (intf_popup_uiinfo[13].widget); gtk_widget_ref (intf_popup_uiinfo[13].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_down", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "audio1",
intf_popup_uiinfo[13].widget, intf_popup_uiinfo[13].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[14].widget); gtk_widget_ref (audio1_menu_uiinfo[0].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio",
audio1_menu_uiinfo[0].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (audio1_menu_uiinfo[0].widget, FALSE);
gtk_widget_ref (audio1_menu_uiinfo[1].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator20",
audio1_menu_uiinfo[1].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (audio1_menu_uiinfo[2].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_up",
audio1_menu_uiinfo[2].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (audio1_menu_uiinfo[3].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_down",
audio1_menu_uiinfo[3].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (audio1_menu_uiinfo[4].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_mute", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_mute",
intf_popup_uiinfo[14].widget, audio1_menu_uiinfo[4].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[15].widget); gtk_widget_ref (audio1_menu_uiinfo[5].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_channels", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator21",
intf_popup_uiinfo[15].widget, audio1_menu_uiinfo[5].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[16].widget); gtk_widget_ref (audio1_menu_uiinfo[6].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_device", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_channels",
intf_popup_uiinfo[16].widget, audio1_menu_uiinfo[6].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[17].widget); gtk_widget_ref (audio1_menu_uiinfo[7].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator17", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_device",
intf_popup_uiinfo[17].widget, audio1_menu_uiinfo[7].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[18].widget); gtk_widget_ref (intf_popup_uiinfo[14].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_next", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "video1",
intf_popup_uiinfo[18].widget, intf_popup_uiinfo[14].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[19].widget); gtk_widget_ref (video1_menu_uiinfo[0].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_prev", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_subpictures",
intf_popup_uiinfo[19].widget, video1_menu_uiinfo[0].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (video1_menu_uiinfo[0].widget, FALSE);
gtk_widget_ref (intf_popup_uiinfo[20].widget); gtk_widget_ref (video1_menu_uiinfo[1].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_jump", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator18",
intf_popup_uiinfo[20].widget, video1_menu_uiinfo[1].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[21].widget); gtk_widget_ref (video1_menu_uiinfo[2].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_program", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_fullscreen",
intf_popup_uiinfo[21].widget, video1_menu_uiinfo[2].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (intf_popup_uiinfo[21].widget, FALSE);
gtk_widget_ref (intf_popup_uiinfo[22].widget); gtk_widget_ref (video1_menu_uiinfo[3].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_navigation", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator19",
intf_popup_uiinfo[22].widget, video1_menu_uiinfo[3].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (intf_popup_uiinfo[22].widget, FALSE);
gtk_widget_ref (intf_popup_uiinfo[23].widget); gtk_widget_ref (video1_menu_uiinfo[4].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_deinterlace",
intf_popup_uiinfo[23].widget, video1_menu_uiinfo[4].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (intf_popup_uiinfo[23].widget, FALSE);
gtk_widget_ref (intf_popup_uiinfo[24].widget); gtk_widget_ref (video1_menu_uiinfo[5].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_subpictures", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_video_device",
intf_popup_uiinfo[24].widget, video1_menu_uiinfo[5].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_set_sensitive (intf_popup_uiinfo[24].widget, FALSE);
gtk_widget_ref (intf_popup_uiinfo[25].widget); gtk_widget_ref (intf_popup_uiinfo[15].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator13", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator13",
intf_popup_uiinfo[25].widget, intf_popup_uiinfo[15].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[26].widget); gtk_widget_ref (intf_popup_uiinfo[16].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_file", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_file",
intf_popup_uiinfo[26].widget, intf_popup_uiinfo[16].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (popup_file_menu_uiinfo[0].widget); gtk_widget_ref (popup_file_menu_uiinfo[0].widget);
...@@ -1301,24 +1360,29 @@ create_intf_popup (void) ...@@ -1301,24 +1360,29 @@ create_intf_popup (void)
popup_file_menu_uiinfo[4].widget, popup_file_menu_uiinfo[4].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[27].widget); gtk_widget_ref (intf_popup_uiinfo[17].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_interface_toggle",
intf_popup_uiinfo[17].widget,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[18].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_playlist", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_playlist",
intf_popup_uiinfo[27].widget, intf_popup_uiinfo[18].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[28].widget); gtk_widget_ref (intf_popup_uiinfo[19].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_preferences", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_preferences",
intf_popup_uiinfo[28].widget, intf_popup_uiinfo[19].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[29].widget); gtk_widget_ref (intf_popup_uiinfo[20].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator2", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator2",
intf_popup_uiinfo[29].widget, intf_popup_uiinfo[20].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_ref (intf_popup_uiinfo[30].widget); gtk_widget_ref (intf_popup_uiinfo[21].widget);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_exit", gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_exit",
intf_popup_uiinfo[30].widget, intf_popup_uiinfo[21].widget,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
return intf_popup; return intf_popup;
......
...@@ -215,18 +215,6 @@ ...@@ -215,18 +215,6 @@
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget>
<class>GtkMenuItem</class>
<name>menubar_fullscreen</name>
<signal>
<name>activate</name>
<handler>GtkFullscreen</handler>
<last_modification_time>Mon, 14 May 2001 21:29:21 GMT</last_modification_time>
</signal>
<label>_Fullscreen</label>
<right_justify>False</right_justify>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>separator13</name> <name>separator13</name>
...@@ -317,30 +305,6 @@ ...@@ -317,30 +305,6 @@
<class>GtkMenu</class> <class>GtkMenu</class>
<name>menubar_settings_menu</name> <name>menubar_settings_menu</name>
<widget>
<class>GtkMenuItem</class>
<name>menubar_audio</name>
<sensitive>False</sensitive>
<tooltip>Select audio channel</tooltip>
<label>A_udio</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>menubar_subpictures</name>
<sensitive>False</sensitive>
<tooltip>Select subtitles channel</tooltip>
<label>_Subtitles</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>separator8</name>
<right_justify>False</right_justify>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>menubar_preferences</name> <name>menubar_preferences</name>
...@@ -366,6 +330,21 @@ ...@@ -366,6 +330,21 @@
<class>GtkMenu</class> <class>GtkMenu</class>
<name>menubar_config_audio_menu</name> <name>menubar_config_audio_menu</name>
<widget>
<class>GtkMenuItem</class>
<name>menubar_audio</name>
<sensitive>False</sensitive>
<tooltip>Select audio channel</tooltip>
<label>_Language</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>separator18</name>
<right_justify>False</right_justify>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>menubar_volume_up</name> <name>menubar_volume_up</name>
...@@ -436,8 +415,34 @@ ...@@ -436,8 +415,34 @@
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>menubar_video_device</name> <name>menubar_subpictures</name>
<label>Screen</label> <sensitive>False</sensitive>
<tooltip>Select subtitles channel</tooltip>
<label>_Subtitles</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>separator25</name>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>menubar_fullscreen</name>
<signal>
<name>activate</name>
<handler>GtkFullscreen</handler>
<last_modification_time>Mon, 14 May 2001 21:29:21 GMT</last_modification_time>
</signal>
<label>_Fullscreen</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>separator24</name>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
...@@ -447,6 +452,13 @@ ...@@ -447,6 +452,13 @@
<label>Deinterlace</label> <label>Deinterlace</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget>
<class>GtkMenuItem</class>
<name>menubar_video_device</name>
<label>Screen</label>
<right_justify>False</right_justify>
</widget>
</widget> </widget>
</widget> </widget>
...@@ -1173,51 +1185,89 @@ ...@@ -1173,51 +1185,89 @@
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>separator6</name> <name>separator16</name>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_interface_toggle</name> <name>popup_next</name>
<signal> <signal>
<name>activate</name> <name>activate</name>
<handler>GtkWindowToggle</handler> <handler>GtkPlaylistNext</handler>
<last_modification_time>Tue, 15 May 2001 13:53:00 GMT</last_modification_time> <last_modification_time>Tue, 15 May 2001 13:52:31 GMT</last_modification_time>
</signal> </signal>
<label>Toggle _Interface</label> <label>Next</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_fullscreen</name> <name>popup_prev</name>
<signal> <signal>
<name>activate</name> <name>activate</name>
<handler>GtkFullscreen</handler> <handler>GtkPlaylistPrev</handler>
<last_modification_time>Tue, 15 May 2001 13:52:38 GMT</last_modification_time> <last_modification_time>Tue, 15 May 2001 13:52:23 GMT</last_modification_time>
</signal> </signal>
<label>_Fullscreen</label> <label>Prev</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_video_device</name> <name>popup_jump</name>
<label>Screen</label> <signal>
<name>activate</name>
<handler>GtkJumpShow</handler>
<last_modification_time>Tue, 15 May 2001 13:52:13 GMT</last_modification_time>
</signal>
<label>_Jump...</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_deinterlace</name> <name>separator27</name>
<label>Deinterlace</label> <right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>popup_program</name>
<sensitive>False</sensitive>
<label>Program</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>popup_navigation</name>
<sensitive>False</sensitive>
<label>_Navigation</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>audio1</name>
<label>Audio</label>
<right_justify>False</right_justify>
<widget>
<class>GtkMenu</class>
<name>audio1_menu</name>
<widget>
<class>GtkMenuItem</class>
<name>popup_audio</name>
<sensitive>False</sensitive>
<label>_Language</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>separator5</name> <name>separator19</name>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
...@@ -1257,6 +1307,12 @@ ...@@ -1257,6 +1307,12 @@
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget>
<class>GtkMenuItem</class>
<name>separator20</name>
<right_justify>False</right_justify>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_audio_channels</name> <name>popup_audio_channels</name>
...@@ -1270,78 +1326,70 @@ ...@@ -1270,78 +1326,70 @@
<label>Device</label> <label>Device</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
</widget>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>separator16</name> <name>video1</name>
<label>Video</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenu</class>
<name>video1_menu</name>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_next</name> <name>popup_subpictures</name>
<signal> <sensitive>False</sensitive>
<name>activate</name> <label>_Subtitles</label>
<handler>GtkPlaylistNext</handler>
<last_modification_time>Tue, 15 May 2001 13:52:31 GMT</last_modification_time>
</signal>
<label>Next</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_prev</name> <name>separator21</name>
<signal>
<name>activate</name>
<handler>GtkPlaylistPrev</handler>
<last_modification_time>Tue, 15 May 2001 13:52:23 GMT</last_modification_time>
</signal>
<label>Prev</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_jump</name> <name>popup_fullscreen</name>
<signal> <signal>
<name>activate</name> <name>activate</name>
<handler>GtkJumpShow</handler> <handler>GtkFullscreen</handler>
<last_modification_time>Tue, 15 May 2001 13:52:13 GMT</last_modification_time> <last_modification_time>Tue, 15 May 2001 13:52:38 GMT</last_modification_time>
</signal> </signal>
<label>_Jump...</label> <label>_Fullscreen</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_program</name> <name>separator23</name>
<sensitive>False</sensitive>
<label>Program</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_navigation</name> <name>popup_deinterlace</name>
<sensitive>False</sensitive> <label>Deinterlace</label>
<label>_Navigation</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_audio</name> <name>popup_video_device</name>
<sensitive>False</sensitive> <label>Screen</label>
<label>_Audio</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
</widget>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_subpictures</name> <name>separator26</name>
<sensitive>False</sensitive>
<label>_Subtitles</label>
<right_justify>False</right_justify> <right_justify>False</right_justify>
</widget> </widget>
...@@ -1414,6 +1462,18 @@ ...@@ -1414,6 +1462,18 @@
</widget> </widget>
</widget> </widget>
<widget>
<class>GtkMenuItem</class>
<name>popup_interface_toggle</name>
<signal>
<name>activate</name>
<handler>GtkWindowToggle</handler>
<last_modification_time>Tue, 15 May 2001 13:53:00 GMT</last_modification_time>
</signal>
<label>Toggle _Interface</label>
<right_justify>False</right_justify>
</widget>
<widget> <widget>
<class>GtkMenuItem</class> <class>GtkMenuItem</class>
<name>popup_playlist</name> <name>popup_playlist</name>
......
...@@ -37,7 +37,6 @@ create_intf_window (void) ...@@ -37,7 +37,6 @@ create_intf_window (void)
GtkWidget *menubar_view_menu; GtkWidget *menubar_view_menu;
GtkAccelGroup *menubar_view_menu_accels; GtkAccelGroup *menubar_view_menu_accels;
GtkWidget *menubar_interface_hide; GtkWidget *menubar_interface_hide;
GtkWidget *menubar_fullscreen;
GtkWidget *separator13; GtkWidget *separator13;
GtkWidget *menubar_program; GtkWidget *menubar_program;
GtkWidget *menubar_title; GtkWidget *menubar_title;
...@@ -49,13 +48,12 @@ create_intf_window (void) ...@@ -49,13 +48,12 @@ create_intf_window (void)
GtkWidget *menubar_settings; GtkWidget *menubar_settings;
GtkWidget *menubar_settings_menu; GtkWidget *menubar_settings_menu;
GtkAccelGroup *menubar_settings_menu_accels; GtkAccelGroup *menubar_settings_menu_accels;
GtkWidget *menubar_audio;
GtkWidget *menubar_subpictures;
GtkWidget *separator8;
GtkWidget *menubar_preferences; GtkWidget *menubar_preferences;
GtkWidget *menubar_config_audio; GtkWidget *menubar_config_audio;
GtkWidget *menubar_config_audio_menu; GtkWidget *menubar_config_audio_menu;
GtkAccelGroup *menubar_config_audio_menu_accels; GtkAccelGroup *menubar_config_audio_menu_accels;
GtkWidget *menubar_audio;
GtkWidget *separator18;
GtkWidget *menubar_volume_up; GtkWidget *menubar_volume_up;
GtkWidget *menubar_volume_down; GtkWidget *menubar_volume_down;
GtkWidget *menubar_volume_mute; GtkWidget *menubar_volume_mute;
...@@ -65,8 +63,12 @@ create_intf_window (void) ...@@ -65,8 +63,12 @@ create_intf_window (void)
GtkWidget *menubar_config_video; GtkWidget *menubar_config_video;
GtkWidget *menubar_config_video_menu; GtkWidget *menubar_config_video_menu;
GtkAccelGroup *menubar_config_video_menu_accels; GtkAccelGroup *menubar_config_video_menu_accels;
GtkWidget *menubar_video_device; GtkWidget *menubar_subpictures;
GtkWidget *separator25;
GtkWidget *menubar_fullscreen;
GtkWidget *separator24;
GtkWidget *menubar_deinterlace; GtkWidget *menubar_deinterlace;
GtkWidget *menubar_video_device;
GtkWidget *menubar_help; GtkWidget *menubar_help;
GtkWidget *menubar_help_menu; GtkWidget *menubar_help_menu;
GtkAccelGroup *menubar_help_menu_accels; GtkAccelGroup *menubar_help_menu_accels;
...@@ -296,17 +298,6 @@ create_intf_window (void) ...@@ -296,17 +298,6 @@ create_intf_window (void)
gtk_container_add (GTK_CONTAINER (menubar_view_menu), menubar_interface_hide); gtk_container_add (GTK_CONTAINER (menubar_view_menu), menubar_interface_hide);
gtk_tooltips_set_tip (tooltips, menubar_interface_hide, _("Hide the main interface window"), NULL); gtk_tooltips_set_tip (tooltips, menubar_interface_hide, _("Hide the main interface window"), NULL);
menubar_fullscreen = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_fullscreen)->child),
_("_Fullscreen"));
gtk_widget_add_accelerator (menubar_fullscreen, "activate_item", menubar_view_menu_accels,
tmp_key, 0, 0);
gtk_widget_ref (menubar_fullscreen);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_fullscreen", menubar_fullscreen,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (menubar_fullscreen);
gtk_container_add (GTK_CONTAINER (menubar_view_menu), menubar_fullscreen);
separator13 = gtk_menu_item_new (); separator13 = gtk_menu_item_new ();
gtk_widget_ref (separator13); gtk_widget_ref (separator13);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator13", separator13, gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator13", separator13,
...@@ -412,40 +403,6 @@ create_intf_window (void) ...@@ -412,40 +403,6 @@ create_intf_window (void)
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_settings), menubar_settings_menu); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_settings), menubar_settings_menu);
menubar_settings_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_settings_menu)); menubar_settings_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_settings_menu));
menubar_audio = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_audio)->child),
_("A_udio"));
gtk_widget_add_accelerator (menubar_audio, "activate_item", menubar_settings_menu_accels,
tmp_key, 0, 0);
gtk_widget_ref (menubar_audio);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio", menubar_audio,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (menubar_audio);
gtk_container_add (GTK_CONTAINER (menubar_settings_menu), menubar_audio);
gtk_widget_set_sensitive (menubar_audio, FALSE);
gtk_tooltips_set_tip (tooltips, menubar_audio, _("Select audio channel"), NULL);
menubar_subpictures = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_subpictures)->child),
_("_Subtitles"));
gtk_widget_add_accelerator (menubar_subpictures, "activate_item", menubar_settings_menu_accels,
tmp_key, 0, 0);
gtk_widget_ref (menubar_subpictures);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_subpictures", menubar_subpictures,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (menubar_subpictures);
gtk_container_add (GTK_CONTAINER (menubar_settings_menu), menubar_subpictures);
gtk_widget_set_sensitive (menubar_subpictures, FALSE);
gtk_tooltips_set_tip (tooltips, menubar_subpictures, _("Select subtitles channel"), NULL);
separator8 = gtk_menu_item_new ();
gtk_widget_ref (separator8);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator8", separator8,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator8);
gtk_container_add (GTK_CONTAINER (menubar_settings_menu), separator8);
gtk_widget_set_sensitive (separator8, FALSE);
menubar_preferences = gtk_menu_item_new_with_label (""); menubar_preferences = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_preferences)->child), tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_preferences)->child),
_("_Preferences...")); _("_Preferences..."));
...@@ -476,6 +433,27 @@ create_intf_window (void) ...@@ -476,6 +433,27 @@ create_intf_window (void)
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_config_audio), menubar_config_audio_menu); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_config_audio), menubar_config_audio_menu);
menubar_config_audio_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_config_audio_menu)); menubar_config_audio_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_config_audio_menu));
menubar_audio = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_audio)->child),
_("_Language"));
gtk_widget_add_accelerator (menubar_audio, "activate_item", menubar_config_audio_menu_accels,
tmp_key, 0, 0);
gtk_widget_ref (menubar_audio);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio", menubar_audio,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (menubar_audio);
gtk_container_add (GTK_CONTAINER (menubar_config_audio_menu), menubar_audio);
gtk_widget_set_sensitive (menubar_audio, FALSE);
gtk_tooltips_set_tip (tooltips, menubar_audio, _("Select audio channel"), NULL);
separator18 = gtk_menu_item_new ();
gtk_widget_ref (separator18);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator18", separator18,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator18);
gtk_container_add (GTK_CONTAINER (menubar_config_audio_menu), separator18);
gtk_widget_set_sensitive (separator18, FALSE);
menubar_volume_up = gtk_menu_item_new_with_label (_("Volume Up")); menubar_volume_up = gtk_menu_item_new_with_label (_("Volume Up"));
gtk_widget_ref (menubar_volume_up); gtk_widget_ref (menubar_volume_up);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_up", menubar_volume_up, gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_up", menubar_volume_up,
...@@ -537,12 +515,45 @@ create_intf_window (void) ...@@ -537,12 +515,45 @@ create_intf_window (void)
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_config_video), menubar_config_video_menu); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_config_video), menubar_config_video_menu);
menubar_config_video_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_config_video_menu)); menubar_config_video_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_config_video_menu));
menubar_video_device = gtk_menu_item_new_with_label (_("Screen")); menubar_subpictures = gtk_menu_item_new_with_label ("");
gtk_widget_ref (menubar_video_device); tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_subpictures)->child),
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_video_device", menubar_video_device, _("_Subtitles"));
gtk_widget_add_accelerator (menubar_subpictures, "activate_item", menubar_config_video_menu_accels,
tmp_key, 0, 0);
gtk_widget_ref (menubar_subpictures);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_subpictures", menubar_subpictures,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (menubar_video_device); gtk_widget_show (menubar_subpictures);
gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), menubar_video_device); gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), menubar_subpictures);
gtk_widget_set_sensitive (menubar_subpictures, FALSE);
gtk_tooltips_set_tip (tooltips, menubar_subpictures, _("Select subtitles channel"), NULL);
separator25 = gtk_menu_item_new ();
gtk_widget_ref (separator25);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator25", separator25,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator25);
gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), separator25);
gtk_widget_set_sensitive (separator25, FALSE);
menubar_fullscreen = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_fullscreen)->child),
_("_Fullscreen"));
gtk_widget_add_accelerator (menubar_fullscreen, "activate_item", menubar_config_video_menu_accels,
tmp_key, 0, 0);
gtk_widget_ref (menubar_fullscreen);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_fullscreen", menubar_fullscreen,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (menubar_fullscreen);
gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), menubar_fullscreen);
separator24 = gtk_menu_item_new ();
gtk_widget_ref (separator24);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator24", separator24,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator24);
gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), separator24);
gtk_widget_set_sensitive (separator24, FALSE);
menubar_deinterlace = gtk_menu_item_new_with_label (_("Deinterlace")); menubar_deinterlace = gtk_menu_item_new_with_label (_("Deinterlace"));
gtk_widget_ref (menubar_deinterlace); gtk_widget_ref (menubar_deinterlace);
...@@ -551,6 +562,13 @@ create_intf_window (void) ...@@ -551,6 +562,13 @@ create_intf_window (void)
gtk_widget_show (menubar_deinterlace); gtk_widget_show (menubar_deinterlace);
gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), menubar_deinterlace); gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), menubar_deinterlace);
menubar_video_device = gtk_menu_item_new_with_label (_("Screen"));
gtk_widget_ref (menubar_video_device);
gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_video_device", menubar_video_device,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (menubar_video_device);
gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), menubar_video_device);
menubar_help = gtk_menu_item_new_with_label (""); menubar_help = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_help)->child), tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_help)->child),
_("_Help")); _("_Help"));
...@@ -966,9 +984,6 @@ create_intf_window (void) ...@@ -966,9 +984,6 @@ create_intf_window (void)
gtk_signal_connect (GTK_OBJECT (menubar_interface_hide), "activate", gtk_signal_connect (GTK_OBJECT (menubar_interface_hide), "activate",
GTK_SIGNAL_FUNC (GtkWindowToggle), GTK_SIGNAL_FUNC (GtkWindowToggle),
NULL); NULL);
gtk_signal_connect (GTK_OBJECT (menubar_fullscreen), "activate",
GTK_SIGNAL_FUNC (GtkFullscreen),
NULL);
gtk_signal_connect (GTK_OBJECT (menubar_playlist), "activate", gtk_signal_connect (GTK_OBJECT (menubar_playlist), "activate",
GTK_SIGNAL_FUNC (GtkPlaylistShow), GTK_SIGNAL_FUNC (GtkPlaylistShow),
NULL); NULL);
...@@ -990,6 +1005,9 @@ create_intf_window (void) ...@@ -990,6 +1005,9 @@ create_intf_window (void)
gtk_signal_connect (GTK_OBJECT (menubar_volume_mute), "activate", gtk_signal_connect (GTK_OBJECT (menubar_volume_mute), "activate",
GTK_SIGNAL_FUNC (GtkVolumeMute), GTK_SIGNAL_FUNC (GtkVolumeMute),
NULL); NULL);
gtk_signal_connect (GTK_OBJECT (menubar_fullscreen), "activate",
GTK_SIGNAL_FUNC (GtkFullscreen),
NULL);
gtk_signal_connect (GTK_OBJECT (menubar_about), "activate", gtk_signal_connect (GTK_OBJECT (menubar_about), "activate",
GTK_SIGNAL_FUNC (GtkAboutShow), GTK_SIGNAL_FUNC (GtkAboutShow),
NULL); NULL);
...@@ -1079,25 +1097,34 @@ create_intf_popup (void) ...@@ -1079,25 +1097,34 @@ create_intf_popup (void)
GtkWidget *popup_back; GtkWidget *popup_back;
GtkWidget *popup_slow; GtkWidget *popup_slow;
GtkWidget *popup_fast; GtkWidget *popup_fast;
GtkWidget *separator6;
GtkWidget *popup_interface_toggle;
GtkWidget *popup_fullscreen;
GtkWidget *popup_video_device;
GtkWidget *popup_deinterlace;
GtkWidget *separator5;
GtkWidget *popup_volume_up;
GtkWidget *popup_volume_down;
GtkWidget *popup_volume_mute;
GtkWidget *popup_audio_channels;
GtkWidget *popup_audio_device;
GtkWidget *separator16; GtkWidget *separator16;
GtkWidget *popup_next; GtkWidget *popup_next;
GtkWidget *popup_prev; GtkWidget *popup_prev;
GtkWidget *popup_jump; GtkWidget *popup_jump;
GtkWidget *separator27;
GtkWidget *popup_program; GtkWidget *popup_program;
GtkWidget *popup_navigation; GtkWidget *popup_navigation;
GtkWidget *audio1;
GtkWidget *audio1_menu;
GtkAccelGroup *audio1_menu_accels;
GtkWidget *popup_audio; GtkWidget *popup_audio;
GtkWidget *separator19;
GtkWidget *popup_volume_up;
GtkWidget *popup_volume_down;
GtkWidget *popup_volume_mute;
GtkWidget *separator20;
GtkWidget *popup_audio_channels;
GtkWidget *popup_audio_device;
GtkWidget *video1;
GtkWidget *video1_menu;
GtkAccelGroup *video1_menu_accels;
GtkWidget *popup_subpictures; GtkWidget *popup_subpictures;
GtkWidget *separator21;
GtkWidget *popup_fullscreen;
GtkWidget *separator23;
GtkWidget *popup_deinterlace;
GtkWidget *popup_video_device;
GtkWidget *separator26;
GtkWidget *popup_open; GtkWidget *popup_open;
GtkWidget *popup_open_menu; GtkWidget *popup_open_menu;
GtkAccelGroup *popup_open_menu_accels; GtkAccelGroup *popup_open_menu_accels;
...@@ -1106,6 +1133,7 @@ create_intf_popup (void) ...@@ -1106,6 +1133,7 @@ create_intf_popup (void)
GtkWidget *popup_network; GtkWidget *popup_network;
GtkWidget *separator12; GtkWidget *separator12;
GtkWidget *popup_about; GtkWidget *popup_about;
GtkWidget *popup_interface_toggle;
GtkWidget *popup_playlist; GtkWidget *popup_playlist;
GtkWidget *popup_preferences; GtkWidget *popup_preferences;
GtkWidget *separator9; GtkWidget *separator9;
...@@ -1168,93 +1196,6 @@ create_intf_popup (void) ...@@ -1168,93 +1196,6 @@ create_intf_popup (void)
gtk_container_add (GTK_CONTAINER (intf_popup), popup_fast); gtk_container_add (GTK_CONTAINER (intf_popup), popup_fast);
gtk_widget_set_sensitive (popup_fast, FALSE); gtk_widget_set_sensitive (popup_fast, FALSE);
separator6 = gtk_menu_item_new ();
gtk_widget_ref (separator6);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator6", separator6,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator6);
gtk_container_add (GTK_CONTAINER (intf_popup), separator6);
gtk_widget_set_sensitive (separator6, FALSE);
popup_interface_toggle = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_interface_toggle)->child),
_("Toggle _Interface"));
gtk_widget_add_accelerator (popup_interface_toggle, "activate_item", intf_popup_accels,
tmp_key, 0, 0);
gtk_widget_ref (popup_interface_toggle);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_interface_toggle", popup_interface_toggle,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_interface_toggle);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_interface_toggle);
popup_fullscreen = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_fullscreen)->child),
_("_Fullscreen"));
gtk_widget_add_accelerator (popup_fullscreen, "activate_item", intf_popup_accels,
tmp_key, 0, 0);
gtk_widget_ref (popup_fullscreen);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_fullscreen", popup_fullscreen,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_fullscreen);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_fullscreen);
popup_video_device = gtk_menu_item_new_with_label (_("Screen"));
gtk_widget_ref (popup_video_device);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_video_device", popup_video_device,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_video_device);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_video_device);
popup_deinterlace = gtk_menu_item_new_with_label (_("Deinterlace"));
gtk_widget_ref (popup_deinterlace);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_deinterlace", popup_deinterlace,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_deinterlace);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_deinterlace);
separator5 = gtk_menu_item_new ();
gtk_widget_ref (separator5);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator5", separator5,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator5);
gtk_container_add (GTK_CONTAINER (intf_popup), separator5);
gtk_widget_set_sensitive (separator5, FALSE);
popup_volume_up = gtk_menu_item_new_with_label (_("Volume Up"));
gtk_widget_ref (popup_volume_up);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_up", popup_volume_up,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_volume_up);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_volume_up);
popup_volume_down = gtk_menu_item_new_with_label (_("Volume Down"));
gtk_widget_ref (popup_volume_down);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_down", popup_volume_down,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_volume_down);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_volume_down);
popup_volume_mute = gtk_menu_item_new_with_label (_("Mute"));
gtk_widget_ref (popup_volume_mute);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_mute", popup_volume_mute,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_volume_mute);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_volume_mute);
popup_audio_channels = gtk_menu_item_new_with_label (_("Channels"));
gtk_widget_ref (popup_audio_channels);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_channels", popup_audio_channels,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_audio_channels);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_audio_channels);
popup_audio_device = gtk_menu_item_new_with_label (_("Device"));
gtk_widget_ref (popup_audio_device);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_device", popup_audio_device,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_audio_device);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_audio_device);
separator16 = gtk_menu_item_new (); separator16 = gtk_menu_item_new ();
gtk_widget_ref (separator16); gtk_widget_ref (separator16);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator16", separator16, gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator16", separator16,
...@@ -1288,6 +1229,14 @@ create_intf_popup (void) ...@@ -1288,6 +1229,14 @@ create_intf_popup (void)
gtk_widget_show (popup_jump); gtk_widget_show (popup_jump);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_jump); gtk_container_add (GTK_CONTAINER (intf_popup), popup_jump);
separator27 = gtk_menu_item_new ();
gtk_widget_ref (separator27);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator27", separator27,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator27);
gtk_container_add (GTK_CONTAINER (intf_popup), separator27);
gtk_widget_set_sensitive (separator27, FALSE);
popup_program = gtk_menu_item_new_with_label (_("Program")); popup_program = gtk_menu_item_new_with_label (_("Program"));
gtk_widget_ref (popup_program); gtk_widget_ref (popup_program);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_program", popup_program, gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_program", popup_program,
...@@ -1308,30 +1257,158 @@ create_intf_popup (void) ...@@ -1308,30 +1257,158 @@ create_intf_popup (void)
gtk_container_add (GTK_CONTAINER (intf_popup), popup_navigation); gtk_container_add (GTK_CONTAINER (intf_popup), popup_navigation);
gtk_widget_set_sensitive (popup_navigation, FALSE); gtk_widget_set_sensitive (popup_navigation, FALSE);
audio1 = gtk_menu_item_new_with_label (_("Audio"));
gtk_widget_ref (audio1);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "audio1", audio1,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (audio1);
gtk_container_add (GTK_CONTAINER (intf_popup), audio1);
audio1_menu = gtk_menu_new ();
gtk_widget_ref (audio1_menu);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "audio1_menu", audio1_menu,
(GtkDestroyNotify) gtk_widget_unref);
gtk_menu_item_set_submenu (GTK_MENU_ITEM (audio1), audio1_menu);
audio1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (audio1_menu));
popup_audio = gtk_menu_item_new_with_label (""); popup_audio = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_audio)->child), tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_audio)->child),
_("_Audio")); _("_Language"));
gtk_widget_add_accelerator (popup_audio, "activate_item", intf_popup_accels, gtk_widget_add_accelerator (popup_audio, "activate_item", audio1_menu_accels,
tmp_key, 0, 0); tmp_key, 0, 0);
gtk_widget_ref (popup_audio); gtk_widget_ref (popup_audio);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio", popup_audio, gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio", popup_audio,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_audio); gtk_widget_show (popup_audio);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_audio); gtk_container_add (GTK_CONTAINER (audio1_menu), popup_audio);
gtk_widget_set_sensitive (popup_audio, FALSE); gtk_widget_set_sensitive (popup_audio, FALSE);
separator19 = gtk_menu_item_new ();
gtk_widget_ref (separator19);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator19", separator19,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator19);
gtk_container_add (GTK_CONTAINER (audio1_menu), separator19);
gtk_widget_set_sensitive (separator19, FALSE);
popup_volume_up = gtk_menu_item_new_with_label (_("Volume Up"));
gtk_widget_ref (popup_volume_up);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_up", popup_volume_up,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_volume_up);
gtk_container_add (GTK_CONTAINER (audio1_menu), popup_volume_up);
popup_volume_down = gtk_menu_item_new_with_label (_("Volume Down"));
gtk_widget_ref (popup_volume_down);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_down", popup_volume_down,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_volume_down);
gtk_container_add (GTK_CONTAINER (audio1_menu), popup_volume_down);
popup_volume_mute = gtk_menu_item_new_with_label (_("Mute"));
gtk_widget_ref (popup_volume_mute);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_mute", popup_volume_mute,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_volume_mute);
gtk_container_add (GTK_CONTAINER (audio1_menu), popup_volume_mute);
separator20 = gtk_menu_item_new ();
gtk_widget_ref (separator20);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator20", separator20,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator20);
gtk_container_add (GTK_CONTAINER (audio1_menu), separator20);
gtk_widget_set_sensitive (separator20, FALSE);
popup_audio_channels = gtk_menu_item_new_with_label (_("Channels"));
gtk_widget_ref (popup_audio_channels);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_channels", popup_audio_channels,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_audio_channels);
gtk_container_add (GTK_CONTAINER (audio1_menu), popup_audio_channels);
popup_audio_device = gtk_menu_item_new_with_label (_("Device"));
gtk_widget_ref (popup_audio_device);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_device", popup_audio_device,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_audio_device);
gtk_container_add (GTK_CONTAINER (audio1_menu), popup_audio_device);
video1 = gtk_menu_item_new_with_label (_("Video"));
gtk_widget_ref (video1);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "video1", video1,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (video1);
gtk_container_add (GTK_CONTAINER (intf_popup), video1);
video1_menu = gtk_menu_new ();
gtk_widget_ref (video1_menu);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "video1_menu", video1_menu,
(GtkDestroyNotify) gtk_widget_unref);
gtk_menu_item_set_submenu (GTK_MENU_ITEM (video1), video1_menu);
video1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (video1_menu));
popup_subpictures = gtk_menu_item_new_with_label (""); popup_subpictures = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_subpictures)->child), tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_subpictures)->child),
_("_Subtitles")); _("_Subtitles"));
gtk_widget_add_accelerator (popup_subpictures, "activate_item", intf_popup_accels, gtk_widget_add_accelerator (popup_subpictures, "activate_item", video1_menu_accels,
tmp_key, 0, 0); tmp_key, 0, 0);
gtk_widget_ref (popup_subpictures); gtk_widget_ref (popup_subpictures);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_subpictures", popup_subpictures, gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_subpictures", popup_subpictures,
(GtkDestroyNotify) gtk_widget_unref); (GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_subpictures); gtk_widget_show (popup_subpictures);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_subpictures); gtk_container_add (GTK_CONTAINER (video1_menu), popup_subpictures);
gtk_widget_set_sensitive (popup_subpictures, FALSE); gtk_widget_set_sensitive (popup_subpictures, FALSE);
separator21 = gtk_menu_item_new ();
gtk_widget_ref (separator21);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator21", separator21,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator21);
gtk_container_add (GTK_CONTAINER (video1_menu), separator21);
gtk_widget_set_sensitive (separator21, FALSE);
popup_fullscreen = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_fullscreen)->child),
_("_Fullscreen"));
gtk_widget_add_accelerator (popup_fullscreen, "activate_item", video1_menu_accels,
tmp_key, 0, 0);
gtk_widget_ref (popup_fullscreen);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_fullscreen", popup_fullscreen,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_fullscreen);
gtk_container_add (GTK_CONTAINER (video1_menu), popup_fullscreen);
separator23 = gtk_menu_item_new ();
gtk_widget_ref (separator23);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator23", separator23,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator23);
gtk_container_add (GTK_CONTAINER (video1_menu), separator23);
gtk_widget_set_sensitive (separator23, FALSE);
popup_deinterlace = gtk_menu_item_new_with_label (_("Deinterlace"));
gtk_widget_ref (popup_deinterlace);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_deinterlace", popup_deinterlace,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_deinterlace);
gtk_container_add (GTK_CONTAINER (video1_menu), popup_deinterlace);
popup_video_device = gtk_menu_item_new_with_label (_("Screen"));
gtk_widget_ref (popup_video_device);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_video_device", popup_video_device,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_video_device);
gtk_container_add (GTK_CONTAINER (video1_menu), popup_video_device);
separator26 = gtk_menu_item_new ();
gtk_widget_ref (separator26);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator26", separator26,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (separator26);
gtk_container_add (GTK_CONTAINER (intf_popup), separator26);
gtk_widget_set_sensitive (separator26, FALSE);
popup_open = gtk_menu_item_new_with_label (""); popup_open = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_open)->child), tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_open)->child),
_("_File")); _("_File"));
...@@ -1405,6 +1482,17 @@ create_intf_popup (void) ...@@ -1405,6 +1482,17 @@ create_intf_popup (void)
gtk_widget_show (popup_about); gtk_widget_show (popup_about);
gtk_container_add (GTK_CONTAINER (popup_open_menu), popup_about); gtk_container_add (GTK_CONTAINER (popup_open_menu), popup_about);
popup_interface_toggle = gtk_menu_item_new_with_label ("");
tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_interface_toggle)->child),
_("Toggle _Interface"));
gtk_widget_add_accelerator (popup_interface_toggle, "activate_item", intf_popup_accels,
tmp_key, 0, 0);
gtk_widget_ref (popup_interface_toggle);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_interface_toggle", popup_interface_toggle,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (popup_interface_toggle);
gtk_container_add (GTK_CONTAINER (intf_popup), popup_interface_toggle);
popup_playlist = gtk_menu_item_new_with_label (_("Playlist...")); popup_playlist = gtk_menu_item_new_with_label (_("Playlist..."));
gtk_widget_ref (popup_playlist); gtk_widget_ref (popup_playlist);
gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_playlist", popup_playlist, gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_playlist", popup_playlist,
...@@ -1460,11 +1548,14 @@ create_intf_popup (void) ...@@ -1460,11 +1548,14 @@ create_intf_popup (void)
gtk_signal_connect (GTK_OBJECT (popup_fast), "activate", gtk_signal_connect (GTK_OBJECT (popup_fast), "activate",
GTK_SIGNAL_FUNC (GtkControlFast), GTK_SIGNAL_FUNC (GtkControlFast),
NULL); NULL);
gtk_signal_connect (GTK_OBJECT (popup_interface_toggle), "activate", gtk_signal_connect (GTK_OBJECT (popup_next), "activate",
GTK_SIGNAL_FUNC (GtkWindowToggle), GTK_SIGNAL_FUNC (GtkPlaylistNext),
NULL); NULL);
gtk_signal_connect (GTK_OBJECT (popup_fullscreen), "activate", gtk_signal_connect (GTK_OBJECT (popup_prev), "activate",
GTK_SIGNAL_FUNC (GtkFullscreen), GTK_SIGNAL_FUNC (GtkPlaylistPrev),
NULL);
gtk_signal_connect (GTK_OBJECT (popup_jump), "activate",
GTK_SIGNAL_FUNC (GtkJumpShow),
NULL); NULL);
gtk_signal_connect (GTK_OBJECT (popup_volume_up), "activate", gtk_signal_connect (GTK_OBJECT (popup_volume_up), "activate",
GTK_SIGNAL_FUNC (GtkVolumeUp), GTK_SIGNAL_FUNC (GtkVolumeUp),
...@@ -1475,14 +1566,8 @@ create_intf_popup (void) ...@@ -1475,14 +1566,8 @@ create_intf_popup (void)
gtk_signal_connect (GTK_OBJECT (popup_volume_mute), "activate", gtk_signal_connect (GTK_OBJECT (popup_volume_mute), "activate",
GTK_SIGNAL_FUNC (GtkVolumeMute), GTK_SIGNAL_FUNC (GtkVolumeMute),
NULL); NULL);
gtk_signal_connect (GTK_OBJECT (popup_next), "activate", gtk_signal_connect (GTK_OBJECT (popup_fullscreen), "activate",
GTK_SIGNAL_FUNC (GtkPlaylistNext), GTK_SIGNAL_FUNC (GtkFullscreen),
NULL);
gtk_signal_connect (GTK_OBJECT (popup_prev), "activate",
GTK_SIGNAL_FUNC (GtkPlaylistPrev),
NULL);
gtk_signal_connect (GTK_OBJECT (popup_jump), "activate",
GTK_SIGNAL_FUNC (GtkJumpShow),
NULL); NULL);
gtk_signal_connect (GTK_OBJECT (popup_file), "activate", gtk_signal_connect (GTK_OBJECT (popup_file), "activate",
GTK_SIGNAL_FUNC (GtkFileOpenShow), GTK_SIGNAL_FUNC (GtkFileOpenShow),
...@@ -1496,6 +1581,9 @@ create_intf_popup (void) ...@@ -1496,6 +1581,9 @@ create_intf_popup (void)
gtk_signal_connect (GTK_OBJECT (popup_about), "activate", gtk_signal_connect (GTK_OBJECT (popup_about), "activate",
GTK_SIGNAL_FUNC (GtkAboutShow), GTK_SIGNAL_FUNC (GtkAboutShow),
NULL); NULL);
gtk_signal_connect (GTK_OBJECT (popup_interface_toggle), "activate",
GTK_SIGNAL_FUNC (GtkWindowToggle),
NULL);
gtk_signal_connect (GTK_OBJECT (popup_playlist), "activate", gtk_signal_connect (GTK_OBJECT (popup_playlist), "activate",
GTK_SIGNAL_FUNC (GtkPlaylistShow), GTK_SIGNAL_FUNC (GtkPlaylistShow),
NULL); NULL);
......
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