[gnome-color-manager/gnome-3-2] Do not use g_application_release() manually
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager/gnome-3-2] Do not use g_application_release() manually
- Date: Mon, 17 Oct 2011 10:14:22 +0000 (UTC)
commit 1fe06814fe4453909122f63cc6f8bd5625c8c1fe
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 10 13:01:53 2011 +0100
Do not use g_application_release() manually
We've used gtk_application_add_window() so there is no need to handle this.
src/gcm-viewer.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/gcm-viewer.c b/src/gcm-viewer.c
index 0822095..8e0131d 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -156,16 +156,6 @@ gcm_viewer_image_prev_cb (GtkWidget *widget, GcmViewerPrivate *viewer)
}
/**
- * gcm_viewer_delete_event_cb:
- **/
-static gboolean
-gcm_viewer_delete_event_cb (GtkWidget *widget, GdkEvent *event, GcmViewerPrivate *viewer)
-{
- g_application_release (G_APPLICATION (viewer->application));
- return FALSE;
-}
-
-/**
* gcm_viewer_profile_kind_to_icon_name:
**/
static const gchar *
@@ -1410,8 +1400,6 @@ gcm_viewer_startup_cb (GApplication *application, GcmViewerPrivate *viewer)
/* Hide window first so that the dialogue resizes itself without redrawing */
gtk_widget_hide (main_window);
gtk_window_set_icon_name (GTK_WINDOW (main_window), GCM_STOCK_ICON);
- g_signal_connect (main_window, "delete_event",
- G_CALLBACK (gcm_viewer_delete_event_cb), viewer);
g_signal_connect (main_window, "drag-data-received",
G_CALLBACK (gcm_viewer_drag_data_received_cb), viewer);
gcm_viewer_setup_drag_and_drop (GTK_WIDGET(main_window));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]