[gegl-edit] Created placeholder About window
- From: Isaac Wagner <isaacbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl-edit] Created placeholder About window
- Date: Wed, 8 Aug 2012 21:11:15 +0000 (UTC)
commit 1688db58a0cf2e517d756bbd2bf14286cef1b725
Author: Isaac Wagner <isaacbw src gnome org>
Date: Wed Aug 8 17:04:48 2012 -0400
Created placeholder About window
gegl-edit/gegl-edit.c | 8 ++++++++
gegl-edit/menubar.ui | 17 +++++++++--------
2 files changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/gegl-edit/gegl-edit.c b/gegl-edit/gegl-edit.c
index 5aa441d..e880d20 100644
--- a/gegl-edit/gegl-edit.c
+++ b/gegl-edit/gegl-edit.c
@@ -233,6 +233,14 @@ nodes_disconnected(GraphGtkView *view, GraphGtkNode *from, const gchar* output,
//////////Gtk+ callbacks//////////
+G_MODULE_EXPORT void activated_about(GtkMenuItem *menuitem, gpointer user_data)
+{
+ CallbackData *data = user_data;
+ gtk_show_about_dialog(GTK_WINDOW(data),
+ "program-name", "GEGL-Edit",
+ NULL);
+}
+
G_MODULE_EXPORT void activated_disconnect(GtkMenuItem *menuitem, gpointer user_data)
{
CallbackData *data = user_data;
diff --git a/gegl-edit/menubar.ui b/gegl-edit/menubar.ui
index 81f0185..517a199 100644
--- a/gegl-edit/menubar.ui
+++ b/gegl-edit/menubar.ui
@@ -1,11 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
- <object class="GtkImage" id="image5">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="stock">gtk-cancel</property>
- </object>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -29,10 +24,10 @@
<property name="can_focus">False</property>
<property name="stock">gtk-add</property>
</object>
- <object class="GtkImage" id="image8">
+ <object class="GtkImage" id="image5">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="stock">gtk-add</property>
+ <property name="stock">gtk-cancel</property>
</object>
<object class="GtkImage" id="image6">
<property name="visible">True</property>
@@ -47,6 +42,11 @@
<property name="yalign">0.49000000953674316</property>
<property name="stock">gtk-yes</property>
</object>
+ <object class="GtkImage" id="image8">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-add</property>
+ </object>
<object class="GtkMenuBar" id="menu_bar">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -293,13 +293,14 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <object class="GtkImageMenuItem" id="imagemenuitem2">
+ <object class="GtkImageMenuItem" id="about">
<property name="label">gtk-about</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
+ <signal name="activate" handler="activated_about" swapped="no"/>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]