[gnome-system-tools] Replace deprecated gtk symbols



commit 810e27b1caa03a62b91f0ba3b245f2b76a24a26e
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Tue Apr 28 03:01:27 2009 +0200

    Replace deprecated gtk symbols
    
    Replace gtk_signal_emit with g_signal_emit
    Replace gtk_signal_emit_by_name with g_signal_emit_by_name
    Replace gtk_window_set_policy with gtk_window_set_resizable
    
    GNOME Bug #572355
---
 ChangeLog                         |    7 +++++++
 src/boot/callbacks.c              |    4 ++--
 src/time/e-map/e-map.c            |    4 ++--
 src/users/search-bar/search-bar.c |    2 +-
 4 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6889cca..d9eff07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-04-28  Thomas H.P. Andersen  <phomes gmail com>
 
+	* src/time/e-map/e-map.c:
+	* src/users/search-bar/search-bar.c:
+	* src/boot/callbacks.c:
+	Replace deprecated gtk symbols. Bug #570952
+
+2009-04-28  Thomas H.P. Andersen  <phomes gmail com>
+
 	* configure.in: bump to 2.27.1.
 
 2009-03-16  Vincent Untz  <vuntz gnome org>
diff --git a/src/boot/callbacks.c b/src/boot/callbacks.c
index 2f2ce90..a5c5daf 100644
--- a/src/boot/callbacks.c
+++ b/src/boot/callbacks.c
@@ -79,7 +79,7 @@ boot_image_editor_construct (BootImageEditor *editor, BootImage *image)
 	gtk_widget_reparent (w, GTK_DIALOG (editor->dialog)->vbox);
 
 	gtk_window_set_title (GTK_WINDOW (editor->dialog), _("Boot Image Editor"));
-	gtk_window_set_policy (GTK_WINDOW (editor->dialog), FALSE, TRUE, TRUE);
+	gtk_window_set_resizable (GTK_WINDOW (editor->dialog), FALSE);
 	gtk_window_set_modal (GTK_WINDOW (editor->dialog), TRUE);
 
 	boot_settings_gui_setup (editor->gui, GTK_DIALOG (editor->dialog)->vbox);
@@ -177,7 +177,7 @@ boot_append_editor_construct (BootAppendEditor *editor, BootSettingsGui *setting
 	gtk_widget_reparent (w, GTK_DIALOG (editor->dialog)->vbox);
 
 	gtk_window_set_title (GTK_WINDOW (editor->dialog), _("Boot Append Editor"));
-	gtk_window_set_policy (GTK_WINDOW (editor->dialog), FALSE, TRUE, TRUE);
+	gtk_window_set_resizable (GTK_WINDOW (editor->dialog), FALSE);
 	gtk_window_set_modal (GTK_WINDOW (editor->dialog), TRUE);
 
 	boot_append_gui_setup (editor->gui, settings);
diff --git a/src/time/e-map/e-map.c b/src/time/e-map/e-map.c
index 20c4c37..195e99d 100644
--- a/src/time/e-map/e-map.c
+++ b/src/time/e-map/e-map.c
@@ -1777,8 +1777,8 @@ set_scroll_area (EMap *view)
 	if (priv->map_render_pixbuf)
 		priv->vadj->upper = gdk_pixbuf_get_height (priv->map_render_pixbuf);
 
-	gtk_signal_emit_by_name (GTK_OBJECT (priv->hadj), "changed");
-	gtk_signal_emit_by_name (GTK_OBJECT (priv->vadj), "changed");
+	g_signal_emit_by_name(G_OBJECT(priv->hadj), "changed");
+	g_signal_emit_by_name(G_OBJECT(priv->vadj), "changed");
 
 	priv->xofs = CLAMP (priv->xofs, 0, priv->hadj->upper - priv->hadj->page_size);
 	priv->yofs = CLAMP (priv->yofs, 0, priv->vadj->upper - priv->vadj->page_size);
diff --git a/src/users/search-bar/search-bar.c b/src/users/search-bar/search-bar.c
index 2a79a20..c2b192e 100644
--- a/src/users/search-bar/search-bar.c
+++ b/src/users/search-bar/search-bar.c
@@ -55,7 +55,7 @@ enum {
 static void
 emit_query_changed (SearchBar *sb)
 {
-	gtk_signal_emit(GTK_OBJECT (sb), sb_signals [QUERY_CHANGED]);
+	g_signal_emit(G_OBJECT(sb), sb_signals [QUERY_CHANGED], 0);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]