summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-07-10 18:02:47 +0000
committerjstebbins <[email protected]>2008-07-10 18:02:47 +0000
commit9179a2196ca96978c7710435d9fadf9e3a86d7e6 (patch)
treeb729b250920ecdfa41c9ac6812dc37121f637b38 /gtk
parentca09da86966397b6467b4dcf912673386b63170a (diff)
LinGui: Add link to HandBrake Guide to help menu
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1563 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/callbacks.c30
-rw-r--r--gtk/src/ghb.ui37
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>