| 514 |
514 |
| 515 /* Create the window. */ |
515 /* Create the window. */ |
| 516 dialog->window = window = pidgin_create_window((cur_pounce == NULL ? _("New Buddy Pounce") : _("Edit Buddy Pounce")), |
516 dialog->window = window = pidgin_create_window((cur_pounce == NULL ? _("New Buddy Pounce") : _("Edit Buddy Pounce")), |
| 517 PIDGIN_HIG_BORDER, "buddy_pounce", FALSE) ; |
517 PIDGIN_HIG_BORDER, "buddy_pounce", FALSE) ; |
| 518 gtk_window_set_type_hint(GTK_WINDOW(window), GDK_WINDOW_TYPE_HINT_DIALOG); |
518 gtk_window_set_type_hint(GTK_WINDOW(window), GDK_WINDOW_TYPE_HINT_DIALOG); |
| |
519 gtk_window_set_transient_for(GTK_WINDOW(window), pidgin_get_toplevel()); |
| 519 |
520 |
| 520 g_signal_connect(G_OBJECT(window), "delete_event", |
521 g_signal_connect(G_OBJECT(window), "delete_event", |
| 521 G_CALLBACK(delete_win_cb), dialog); |
522 G_CALLBACK(delete_win_cb), dialog); |
| 522 |
523 |
| 523 /* Create the parent vbox for everything. */ |
524 /* Create the parent vbox for everything. */ |
| 1055 } |
1056 } |
| 1056 |
1057 |
| 1057 static void |
1058 static void |
| 1058 pounces_manager_add_cb(GtkButton *button, gpointer user_data) |
1059 pounces_manager_add_cb(GtkButton *button, gpointer user_data) |
| 1059 { |
1060 { |
| |
1061 pidgin_set_toplevel(gtk_widget_get_toplevel(button)); |
| 1060 pidgin_pounce_editor_show(NULL, NULL, NULL); |
1062 pidgin_pounce_editor_show(NULL, NULL, NULL); |
| 1061 } |
1063 } |
| 1062 |
1064 |
| 1063 static void |
1065 static void |
| 1064 pounces_manager_modify_foreach(GtkTreeModel *model, GtkTreePath *path, |
1066 pounces_manager_modify_foreach(GtkTreeModel *model, GtkTreePath *path, |