diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-02-11 03:50:55 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-02-11 03:50:55 +0800 |
commit | 0701addc195c6315474346c9bd062dc7dc84f80c (patch) | |
tree | 3306df04d1b6995eee80aa8fbabe617507dcb145 /mail/mail-display.c | |
parent | 33841eb730d8a62aee6793dd54e624281bf58142 (diff) | |
download | gsoc2013-evolution-0701addc195c6315474346c9bd062dc7dc84f80c.tar.gz gsoc2013-evolution-0701addc195c6315474346c9bd062dc7dc84f80c.tar.zst gsoc2013-evolution-0701addc195c6315474346c9bd062dc7dc84f80c.zip |
Use g_signal_emit() rather than gtk_signal_emit(). (build_flat): Same
2003-02-10 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (build_tree): Use g_signal_emit() rather than
gtk_signal_emit().
(build_flat): Same here.
* mail-signature-editor.c: #include <string.h>
* mail-vfolder.c: #include <string.h>
* mail-session.c: #include <string.h>
* mail-search.c: #include <string.h>
* mail-mt.c: #include <string.h>
* mail-ops.c (save_part_save): Use strcasecmp() instead of
g_strcasecmp().
* mail-local.c: #include <string.h>
(reconfigure_folder_reconfigured): Use a GtkDialog instead of
gnome_error_dialog().
* mail-format.c (find_preferred_alternative): Use g_ascii_strdown
since g_strdown is deprecated.
(fake_mime_part_from_data): Removed, no longer used it seems.
(destroy_part): Also removed.
* mail-display.c (make_popup_window): Replace call to
gtk_window_set_polociy() with gtk_window_set_resizable() instead.
(popup_size_allocate_cb): Use gtk_window_set_position() with
GTK_WIN_POS_MOUSE instead of calculating the position to put it
in.
svn path=/trunk/; revision=19878
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r-- | mail/mail-display.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index ace2dacb3d..13806902b8 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -2325,18 +2325,7 @@ popup_realize_cb (GtkWidget *widget, gpointer user_data) static void popup_size_allocate_cb (GtkWidget *widget, GtkAllocation *alloc, gpointer user_data) { - int x, y, w, h, xmax, ymax; - - xmax = gdk_screen_width (); - ymax = gdk_screen_height (); - - gdk_window_get_pointer (NULL, &x, &y, NULL); - w = alloc->width; - h = alloc->height; - x = CLAMP (x - w/2, 0, xmax - w); - y = CLAMP (y - h/2, 0, ymax - h); - gtk_widget_set_uposition (widget, x, y); - + gtk_window_set_position (GTK_WINDOW (widget), GTK_WIN_POS_MOUSE); } static PopupInfo * @@ -2356,7 +2345,7 @@ make_popup_window (GtkWidget *w) gtk_container_add (GTK_CONTAINER (pop->win), fr); gtk_container_add (GTK_CONTAINER (fr), w); - gtk_window_set_policy (GTK_WINDOW (pop->win), FALSE, FALSE, FALSE); + gtk_window_set_resizable (GTK_WINDOW (pop->win), FALSE); g_signal_connect (pop->win, "enter_notify_event", G_CALLBACK (popup_enter_cb), pop); g_signal_connect (pop->win, "leave_notify_event", G_CALLBACK (popup_leave_cb), pop); |