]> granicus.if.org Git - handbrake/commitdiff
LinGui: Fix "Open Source" on older gtk versions
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 29 Aug 2016 16:44:23 +0000 (09:44 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 29 Aug 2016 16:46:02 +0000 (09:46 -0700)
Older gtk versions do not support the mnemonics "cancel" and "no" as
substitutes for integer response values.

gtk/src/ghb.m4

index 40677212205d7d6dded9ea44e0596951aa06d89a..42efa912086be93ebd7ea889d43df214ca663800 100644 (file)
@@ -8564,6 +8564,7 @@ ifelse(eval(gtk_version <= 312), 1, filter_output([
             <child>
               <object class="GtkButton" id="source_cancel">
                 <property name="label" translatable="yes">_Cancel</property>
+                <property name="use-underline">True</property>
                 <property name="image">gtk-cancel</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
@@ -8580,6 +8581,7 @@ ifelse(eval(gtk_version <= 312), 1, filter_output([
             <child>
               <object class="GtkButton" id="source_ok">
                 <property name="label" translatable="yes">_Open</property>
+                <property name="use-underline">True</property>
                 <property name="image">gtk-ok</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
@@ -8698,8 +8700,8 @@ filter_output([
       </object>
     </child>
     <action-widgets>
-      <action-widget response="cancel">source_cancel</action-widget>
-      <action-widget response="no">source_ok</action-widget>
+      <action-widget response="-6">source_cancel</action-widget>
+      <action-widget response="-9">source_ok</action-widget>
     </action-widgets>
   </object>
   <object class="GtkImage" id="gtk-cancel">