Mercurial > pidgin.yaz
comparison pidgin/gtkdebug.c @ 21344:80af064d311c
merge of '2511e448b3af6dfc5daebf1f6d4b485ef647c245'
and '471ae1ec0ae96bb44471811c3a0d6b905743a400'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 16 Nov 2007 22:59:44 +0000 |
parents | 0b67d509a305 6c4de0d24eff |
children | 200afe30b7af |
comparison
equal
deleted
inserted
replaced
21231:002c2495cae3 | 21344:80af064d311c |
---|---|
34 #include "gtkdebug.h" | 34 #include "gtkdebug.h" |
35 #include "gtkdialogs.h" | 35 #include "gtkdialogs.h" |
36 #include "gtkimhtml.h" | 36 #include "gtkimhtml.h" |
37 #include "gtkutils.h" | 37 #include "gtkutils.h" |
38 #include "pidginstock.h" | 38 #include "pidginstock.h" |
39 #include "gtkblist.h" | |
40 | 39 |
41 #ifdef HAVE_REGEX_H | 40 #ifdef HAVE_REGEX_H |
42 # include <regex.h> | 41 # include <regex.h> |
43 #endif /* HAVE_REGEX_H */ | 42 #endif /* HAVE_REGEX_H */ |
44 | 43 |
672 } | 671 } |
673 | 672 |
674 static DebugWindow * | 673 static DebugWindow * |
675 debug_window_new(void) | 674 debug_window_new(void) |
676 { | 675 { |
677 PidginBuddyList *blist; | |
678 DebugWindow *win; | 676 DebugWindow *win; |
679 GtkWidget *vbox; | 677 GtkWidget *vbox; |
680 GtkWidget *toolbar; | 678 GtkWidget *toolbar; |
681 GtkWidget *frame; | 679 GtkWidget *frame; |
682 GtkWidget *image; | 680 GtkWidget *image; |
687 | 685 |
688 width = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/debug/width"); | 686 width = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/debug/width"); |
689 height = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/debug/height"); | 687 height = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/debug/height"); |
690 | 688 |
691 PIDGIN_DIALOG(win->window); | 689 PIDGIN_DIALOG(win->window); |
692 if ((blist = pidgin_blist_get_default_gtk_blist()) != NULL) | |
693 if (blist->window) | |
694 gtk_window_set_transient_for(GTK_WINDOW(win->window), GTK_WINDOW(blist->window)); | |
695 purple_debug_info("gtkdebug", "Setting dimensions to %d, %d\n", | 690 purple_debug_info("gtkdebug", "Setting dimensions to %d, %d\n", |
696 width, height); | 691 width, height); |
697 | 692 |
698 gtk_window_set_default_size(GTK_WINDOW(win->window), width, height); | 693 gtk_window_set_default_size(GTK_WINDOW(win->window), width, height); |
699 gtk_window_set_role(GTK_WINDOW(win->window), "debug"); | 694 gtk_window_set_role(GTK_WINDOW(win->window), "debug"); |