Mercurial > pidgin.yaz
comparison pidgin/gtkplugin.c @ 21347:200afe30b7af
merge of '53b79b2ce557c515c1eb6d234e40ede98328a82e'
and 'f0a7f7c96090e1312d4ca0675a3e047cfb4a2a53'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 16 Nov 2007 23:00:41 +0000 |
parents | fba1f6c3df0b 80af064d311c |
children | 0cb8d5304f4f |
comparison
equal
deleted
inserted
replaced
21238:dd510f19c844 | 21347:200afe30b7af |
---|---|
531 plugin_dialog_response_cb(dialog, PIDGIN_RESPONSE_CONFIGURE, sel); | 531 plugin_dialog_response_cb(dialog, PIDGIN_RESPONSE_CONFIGURE, sel); |
532 } | 532 } |
533 | 533 |
534 void pidgin_plugin_dialog_show() | 534 void pidgin_plugin_dialog_show() |
535 { | 535 { |
536 pidgin_plugin_dialog_show_with_parent(NULL); | |
537 } | |
538 | |
539 void pidgin_plugin_dialog_show_with_parent(GtkWindow *parent) | |
540 { | |
541 GtkWidget *sw; | 536 GtkWidget *sw; |
542 GtkWidget *event_view; | 537 GtkWidget *event_view; |
543 GtkListStore *ls; | 538 GtkListStore *ls; |
544 GtkCellRenderer *rend, *rendt; | 539 GtkCellRenderer *rend, *rendt; |
545 GtkTreeViewColumn *col; | 540 GtkTreeViewColumn *col; |
546 GtkTreeSelection *sel; | 541 GtkTreeSelection *sel; |
547 | 542 |
548 if (plugin_dialog != NULL) { | 543 if (plugin_dialog != NULL) { |
549 if (parent) | |
550 gtk_window_set_transient_for(GTK_WINDOW(plugin_dialog), parent); | |
551 gtk_window_present(GTK_WINDOW(plugin_dialog)); | 544 gtk_window_present(GTK_WINDOW(plugin_dialog)); |
552 return; | 545 return; |
553 } | 546 } |
554 | 547 |
555 plugin_dialog = gtk_dialog_new_with_buttons(_("Plugins"), | 548 plugin_dialog = gtk_dialog_new_with_buttons(_("Plugins"), |
556 NULL, | 549 NULL, |
557 GTK_DIALOG_NO_SEPARATOR, | 550 GTK_DIALOG_NO_SEPARATOR, |
558 NULL); | 551 NULL); |
559 if (parent) | |
560 gtk_window_set_transient_for(GTK_WINDOW(plugin_dialog), parent); | |
561 pref_button = gtk_dialog_add_button(GTK_DIALOG(plugin_dialog), | 552 pref_button = gtk_dialog_add_button(GTK_DIALOG(plugin_dialog), |
562 _("Configure Pl_ugin"), PIDGIN_RESPONSE_CONFIGURE); | 553 _("Configure Pl_ugin"), PIDGIN_RESPONSE_CONFIGURE); |
563 gtk_dialog_add_button(GTK_DIALOG(plugin_dialog), | 554 gtk_dialog_add_button(GTK_DIALOG(plugin_dialog), |
564 GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE); | 555 GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE); |
565 gtk_widget_set_sensitive(pref_button, FALSE); | 556 gtk_widget_set_sensitive(pref_button, FALSE); |