diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/callbacks.c | 30 | ||||
-rw-r--r-- | gtk/src/ghb.ui | 37 |
2 files changed, 53 insertions, 14 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 13b23f8ec..9bd155822 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -2831,6 +2831,36 @@ about_activate_cb(GtkWidget *xwidget, signal_user_data_t *ud) } void +guide_activate_cb(GtkWidget *xwidget, signal_user_data_t *ud) +{ + gboolean result; + char *argv[] = + {"xdg-open","http://trac.handbrake.fr/wiki/HandBrakeGuide",NULL,NULL}; + result = g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, + NULL, NULL, NULL); + if (result) return; + + argv[0] = "gnome-open"; + result = g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, + NULL, NULL, NULL); + if (result) return; + + argv[0] = "kfmclient"; + argv[1] = "exec"; + argv[2] = "http://trac.handbrake.fr/wiki/HandBrakeGuide"; + result = g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, + NULL, NULL, NULL); + if (result) return; + + argv[0] = "firefox"; + argv[1] = "http://trac.handbrake.fr/wiki/HandBrakeGuide"; + argv[2] = NULL; + result = g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, + NULL, NULL, NULL); + if (result) return; +} + +void hb_about_response_cb(GtkWidget *widget, gint response, signal_user_data_t *ud) { gtk_widget_hide (widget); diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index 9314684ea..4602e21cd 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -277,6 +277,13 @@ <signal handler="about_activate_cb" name="activate"/> </object> </child> + <child> + <object class="GtkAction" id="guide"> + <property name="name">guide</property> + <property name="label" translatable="yes">_Guide</property> + <signal handler="guide_activate_cb" name="activate"/> + </object> + </child> </object> </child> <ui> @@ -301,6 +308,7 @@ </menu> <menu action="menuitem4"> <menuitem action="about"/> + <menuitem action="guide"/> </menu> </menubar> </ui> @@ -1274,41 +1282,40 @@ <property name="visible">True</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> <child> - <object class="GtkCheckButton" id="detelecine"> + <object class="GtkCheckButton" id="grayscale"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> - <property name="label" translatable="yes">Detelecine</property> + <property name="label" translatable="yes">Grayscale</property> <property name="draw_indicator">True</property> <signal handler="setting_widget_changed_cb" name="toggled"/> </object> <packing> - <property name="expand">False</property> + <property name="position">0</property> </packing> </child> <child> - <object class="GtkCheckButton" id="decomb"> + <object class="GtkCheckButton" id="detelecine"> <property name="visible">True</property> <property name="can_focus">True</property> - <property name="label" translatable="yes">De-Comb</property> - <property name="active">True</property> + <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> + <property name="label" translatable="yes">Detelecine</property> <property name="draw_indicator">True</property> <signal handler="setting_widget_changed_cb" name="toggled"/> </object> <packing> - <property name="expand">False</property> <property name="position">1</property> + <property name="expand">False</property> </packing> </child> <child> - <object class="GtkCheckButton" id="variable_frame_rate"> + <object class="GtkCheckButton" id="decomb"> <property name="visible">True</property> <property name="can_focus">True</property> - <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> - <property name="label" translatable="yes">Variable Frame Rate</property> + <property name="label" translatable="yes">De-Comb</property> <property name="active">True</property> <property name="draw_indicator">True</property> - <signal handler="vfr_changed_cb" name="toggled"/> + <signal handler="setting_widget_changed_cb" name="toggled"/> </object> <packing> <property name="expand">False</property> @@ -1604,15 +1611,17 @@ </packing> </child> <child> - <object class="GtkCheckButton" id="grayscale"> + <object class="GtkCheckButton" id="variable_frame_rate"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> - <property name="label" translatable="yes">Grayscale</property> + <property name="label" translatable="yes">Variable Frame Rate</property> + <property name="active">True</property> <property name="draw_indicator">True</property> - <signal handler="setting_widget_changed_cb" name="toggled"/> + <signal handler="vfr_changed_cb" name="toggled"/> </object> <packing> + <property name="expand">False</property> <property name="position">2</property> </packing> </child> |