Mercurial > pidgin.yaz
comparison pidgin/gtkplugin.c @ 21078:96612191ded8
Only the request API changes
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Tue, 09 Oct 2007 20:47:07 +0000 |
parents | f90f334a58f0 |
children | 8ee5add948c0 |
comparison
equal
deleted
inserted
replaced
21077:488796f5ba33 | 21078:96612191ded8 |
---|---|
514 plugin_dialog_response_cb(dialog, PIDGIN_RESPONSE_CONFIGURE, sel); | 514 plugin_dialog_response_cb(dialog, PIDGIN_RESPONSE_CONFIGURE, sel); |
515 } | 515 } |
516 | 516 |
517 void pidgin_plugin_dialog_show() | 517 void pidgin_plugin_dialog_show() |
518 { | 518 { |
519 pidgin_plugin_dialog_show_with_parent(NULL); | |
520 } | |
521 | |
522 void pidgin_plugin_dialog_show_with_parent(GtkWindow *parent) | |
523 { | |
524 GtkWidget *sw; | 519 GtkWidget *sw; |
525 GtkWidget *event_view; | 520 GtkWidget *event_view; |
526 GtkListStore *ls; | 521 GtkListStore *ls; |
527 GtkCellRenderer *rend, *rendt; | 522 GtkCellRenderer *rend, *rendt; |
528 GtkTreeViewColumn *col; | 523 GtkTreeViewColumn *col; |
529 GtkTreeSelection *sel; | 524 GtkTreeSelection *sel; |
530 | 525 |
531 if (plugin_dialog != NULL) { | 526 if (plugin_dialog != NULL) { |
532 if (parent) | |
533 gtk_window_set_transient_for(GTK_WINDOW(plugin_dialog), parent); | |
534 gtk_window_present(GTK_WINDOW(plugin_dialog)); | 527 gtk_window_present(GTK_WINDOW(plugin_dialog)); |
535 return; | 528 return; |
536 } | 529 } |
537 | 530 |
538 plugin_dialog = gtk_dialog_new_with_buttons(_("Plugins"), | 531 plugin_dialog = gtk_dialog_new_with_buttons(_("Plugins"), |