Mercurial > pidgin.yaz
comparison src/buddy.c @ 4472:e73c4e8e2d03
[gaim-migrate @ 4747]
E'ric Boumaour (zongo_fr) writes:
"gtkconv.c and gtkutils.c in POTFILES.in
gettextized some strings in dialogs.c
French translation file update and entry in gaim.desktop"
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 30 Jan 2003 15:15:15 +0000 |
parents | 78a2d2e7f4b5 |
children | 62c1e5e656d0 |
comparison
equal
deleted
inserted
replaced
4471:c43c91ecb261 | 4472:e73c4e8e2d03 |
---|---|
2322 * call get_position and get_size because they do pay attention to * | 2322 * call get_position and get_size because they do pay attention to * |
2323 * the gravity. this is inefficient and I agree it sucks, but it's * | 2323 * the gravity. this is inefficient and I agree it sucks, but it's * |
2324 * more likely to work correctly. - Robot101 */ | 2324 * more likely to work correctly. - Robot101 */ |
2325 gint x, y; | 2325 gint x, y; |
2326 | 2326 |
2327 gtk_window_get_position(GTK_WINDOW(blist), &x, &y); | 2327 /* check for visibility because when we aren't visible, this will * |
2328 | 2328 * give us bogus (0,0) coordinates. - xOr */ |
2329 if (x != blist_pos.x || | 2329 if (GTK_WIDGET_VISIBLE(blist)) { |
2330 y != blist_pos.y || | 2330 gtk_window_get_position(GTK_WINDOW(blist), &x, &y); |
2331 event->width != blist_pos.width || | 2331 |
2332 event->height != blist_pos.height) { | 2332 if (x != blist_pos.x || |
2333 blist_pos.x = x; | 2333 y != blist_pos.y || |
2334 blist_pos.y = y; | 2334 event->width != blist_pos.width || |
2335 blist_pos.width = event->width; | 2335 event->height != blist_pos.height) { |
2336 blist_pos.height = event->height; | 2336 blist_pos.x = x; |
2337 save_prefs(); | 2337 blist_pos.y = y; |
2338 blist_pos.width = event->width; | |
2339 blist_pos.height = event->height; | |
2340 save_prefs(); | |
2341 } | |
2338 } | 2342 } |
2339 return FALSE; | 2343 return FALSE; |
2340 } | 2344 } |
2341 | 2345 |
2342 static void visibility_blist_window(GtkWidget *w, GdkEventVisibility *event, void *data) { | 2346 static void visibility_blist_window(GtkWidget *w, GdkEventVisibility *event, void *data) { |