[Xfce4-commits] <parole:bluesabre/gtk3> GTK+3 Media Chooser dialog.

Sean Davis noreply at xfce.org
Sun Feb 17 14:30:01 CET 2013


Updating branch refs/heads/bluesabre/gtk3
         to 74bb2f66a7ea49c9fabefc1cc61bdc03053be655 (commit)
       from 27d42a8846498524420ca7c1c021b1a4de90f9b7 (commit)

commit 74bb2f66a7ea49c9fabefc1cc61bdc03053be655
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sun Feb 17 08:28:21 2013 -0500

    GTK+3 Media Chooser dialog.

 data/interfaces/Makefile.am       |    4 +-
 data/interfaces/mediachooser-3.ui |   96 +++++++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+), 2 deletions(-)

diff --git a/data/interfaces/Makefile.am b/data/interfaces/Makefile.am
index fb2f3bd..6a356fc 100644
--- a/data/interfaces/Makefile.am
+++ b/data/interfaces/Makefile.am
@@ -16,7 +16,7 @@ interfaces =					\
 	parole.ui				\
 	parole-settings-3.ui			\
 	playlist.ui				\
-	mediachooser.ui				\
+	mediachooser-3.ui				\
 	save-playlist.ui			\
 	plugins.ui				\
 	open-location.ui
@@ -33,7 +33,7 @@ parole-settings_ui.h: parole-settings-3.ui
 playlist_ui.h: playlist.ui
 	xdt-csource --static --strip-comments --strip-content --name=playlist_ui $< > $@
 
-mediachooser_ui.h: mediachooser.ui
+mediachooser_ui.h: mediachooser-3.ui
 	xdt-csource --static --strip-comments --strip-content --name=mediachooser_ui $< > $@
 
 save-playlist_ui.h: save-playlist.ui
diff --git a/data/interfaces/mediachooser-3.ui b/data/interfaces/mediachooser-3.ui
new file mode 100644
index 0000000..9112a03
--- /dev/null
+++ b/data/interfaces/mediachooser-3.ui
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkDialog" id="chooser">
+    <property name="can_focus">False</property>
+    <property name="border_width">5</property>
+    <property name="title" translatable="yes">Open Media Files</property>
+    <property name="modal">True</property>
+    <property name="default_width">640</property>
+    <property name="default_height">480</property>
+    <property name="type_hint">dialog</property>
+    <signal name="destroy" handler="parole_media_chooser_destroy_cb" swapped="no"/>
+    <child internal-child="vbox">
+      <object class="GtkBox" id="dialog-vbox1">
+        <property name="can_focus">False</property>
+        <property name="orientation">vertical</property>
+        <property name="spacing">2</property>
+        <child internal-child="action_area">
+          <object class="GtkButtonBox" id="dialog-action_area1">
+            <property name="can_focus">False</property>
+            <property name="layout_style">end</property>
+            <child>
+              <object class="GtkSpinner" id="spinner">
+                <property name="can_focus">False</property>
+                <property name="no_show_all">True</property>
+                <property name="active">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">0</property>
+                <property name="secondary">True</property>
+                <property name="non_homogeneous">True</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton" id="close">
+                <property name="label">gtk-cancel</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_stock">True</property>
+                <signal name="clicked" handler="parole_media_chooser_close_clicked" swapped="no"/>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton" id="open">
+                <property name="label">gtk-open</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_stock">True</property>
+                <signal name="clicked" handler="parole_media_chooser_add_clicked" swapped="no"/>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="pack_type">end</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkFileChooserWidget" id="filechooserwidget">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="border_width">5</property>
+            <property name="orientation">vertical</property>
+            <signal name="file-activated" handler="media_chooser_file_activate_cb" swapped="no"/>
+            <signal name="current-folder-changed" handler="media_chooser_folder_changed_cb" swapped="no"/>
+          </object>
+          <packing>
+            <property name="expand">True</property>
+            <property name="fill">True</property>
+            <property name="position">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+    <action-widgets>
+      <action-widget response="0">close</action-widget>
+      <action-widget response="0">open</action-widget>
+    </action-widgets>
+  </object>
+</interface>


More information about the Xfce4-commits mailing list