[gnome-color-manager] viewer: remove the the preferences and help buttons
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] viewer: remove the the preferences and help buttons
- Date: Fri, 25 Mar 2011 11:16:16 +0000 (UTC)
commit c5803bcee30a6c24220181be36b830ef2cbc094a
Author: Richard Hughes <richard hughsie com>
Date: Fri Mar 25 09:49:35 2011 +0000
viewer: remove the the preferences and help buttons
data/gcm-viewer.ui | 37 +------------------------------------
src/gcm-viewer.c | 31 -------------------------------
2 files changed, 1 insertions(+), 67 deletions(-)
---
diff --git a/data/gcm-viewer.ui b/data/gcm-viewer.ui
index b91f469..fac5d6b 100644
--- a/data/gcm-viewer.ui
+++ b/data/gcm-viewer.ui
@@ -19,39 +19,6 @@
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
- <object class="GtkButton" id="button_help">
- <property name="label">gtk-help</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="has_tooltip">True</property>
- <property name="tooltip_markup" translatable="yes">Open the documentation</property>
- <property name="tooltip_text" translatable="yes">Open the documentation</property>
- <property name="use_action_appearance">False</property>
- <property name="use_stock">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="button_preferences">
- <property name="label">gtk-preferences</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_action_appearance">False</property>
- <property name="use_stock">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
<object class="GtkButton" id="button_close">
<property name="label">gtk-close</property>
<property name="visible">True</property>
@@ -66,7 +33,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">2</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
@@ -1330,8 +1297,6 @@
</object>
</child>
<action-widgets>
- <action-widget response="0">button_help</action-widget>
- <action-widget response="0">button_preferences</action-widget>
<action-widget response="0">button_close</action-widget>
</action-widgets>
</object>
diff --git a/src/gcm-viewer.c b/src/gcm-viewer.c
index 1f8bf58..6438046 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -147,30 +147,6 @@ gcm_viewer_image_prev_cb (GtkWidget *widget, GcmViewerPrivate *viewer)
}
/**
- * gcm_viewer_preferences_cb:
- **/
-static void
-gcm_viewer_preferences_cb (GtkWidget *widget, GcmViewerPrivate *viewer)
-{
- gboolean ret;
- GError *error = NULL;
- ret = g_spawn_command_line_async ("gnome-control-center color", &error);
- if (!ret) {
- g_warning ("failed to run prefs: %s", error->message);
- g_error_free (error);
- }
-}
-
-/**
- * gcm_viewer_help_cb:
- **/
-static void
-gcm_viewer_help_cb (GtkWidget *widget, GcmViewerPrivate *viewer)
-{
- gcm_gnome_help ("viewer");
-}
-
-/**
* gcm_viewer_delete_event_cb:
**/
static gboolean
@@ -1126,13 +1102,6 @@ gcm_viewer_startup_cb (GApplication *application, GcmViewerPrivate *viewer)
widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder, "button_close"));
g_signal_connect (widget, "clicked",
G_CALLBACK (gcm_viewer_close_cb), viewer);
- widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder, "button_preferences"));
- g_signal_connect (widget, "clicked",
- G_CALLBACK (gcm_viewer_preferences_cb), viewer);
- widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder, "button_help"));
- g_signal_connect (widget, "clicked",
- G_CALLBACK (gcm_viewer_help_cb), viewer);
- gtk_widget_set_sensitive (widget, FALSE);
widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder, "button_profile_delete"));
g_signal_connect (widget, "clicked",
G_CALLBACK (gcm_viewer_profile_delete_cb), viewer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]