| 148 |
148 |
| 149 wnd = GTK_WINDOW(gtk_window_new(GTK_WINDOW_TOPLEVEL)); |
149 wnd = GTK_WINDOW(gtk_window_new(GTK_WINDOW_TOPLEVEL)); |
| 150 pidgin_window_init(wnd, title, border_width, role, resizable); |
150 pidgin_window_init(wnd, title, border_width, role, resizable); |
| 151 |
151 |
| 152 return GTK_WIDGET(wnd); |
152 return GTK_WIDGET(wnd); |
| |
153 } |
| |
154 |
| |
155 GtkWidget * |
| |
156 pidgin_create_small_button(GtkWidget *image) |
| |
157 { |
| |
158 GtkWidget *button; |
| |
159 GtkRcStyle *rcstyle; |
| |
160 |
| |
161 button = gtk_button_new(); |
| |
162 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); |
| |
163 |
| |
164 /* don't allow focus on the close button */ |
| |
165 gtk_button_set_focus_on_click(GTK_BUTTON(button), FALSE); |
| |
166 |
| |
167 /* make it as small as possible */ |
| |
168 rcstyle = gtk_rc_style_new(); |
| |
169 rcstyle->xthickness = rcstyle->ythickness = 0; |
| |
170 gtk_widget_modify_style(button, rcstyle); |
| |
171 gtk_rc_style_unref(rcstyle); |
| |
172 |
| |
173 gtk_widget_show(image); |
| |
174 |
| |
175 gtk_container_add(GTK_CONTAINER(button), image); |
| |
176 |
| |
177 return button; |
| 153 } |
178 } |
| 154 |
179 |
| 155 GtkWidget * |
180 GtkWidget * |
| 156 pidgin_create_dialog(const char *title, guint border_width, const char *role, gboolean resizable) |
181 pidgin_create_dialog(const char *title, guint border_width, const char *role, gboolean resizable) |
| 157 { |
182 { |