comparison src/shnplug/gtk.c @ 2192:e5401b6c4665

the same thing in many plugins
author Eugene Zagidullin <e.asphyx@gmail.com>
date Wed, 28 Nov 2007 03:51:34 +0300
parents b8da6a0b0da2
children 194c2f8c2a92
comparison
equal deleted inserted replaced
2191:329267b09658 2192:e5401b6c4665
76 76
77 void shn_display_about(void) 77 void shn_display_about(void)
78 { 78 {
79 if (about_box != NULL) 79 if (about_box != NULL)
80 { 80 {
81 gdk_window_raise(about_box->window); 81 gtk_window_present(GTK_WINDOW(about_box));
82 return; 82 return;
83 } 83 }
84 84
85 about_box = audacious_info_dialog( 85 about_box = audacious_info_dialog(
86 (gchar *) "About " PACKAGE, 86 (gchar *) "About " PACKAGE,
151 151
152 void shn_display_configure(void) 152 void shn_display_configure(void)
153 { 153 {
154 if (shn_configurewin != NULL) 154 if (shn_configurewin != NULL)
155 { 155 {
156 gdk_window_raise(shn_configurewin->window); 156 gtk_window_present(GTK_WINDOW(shn_configurewin));
157 return; 157 return;
158 } 158 }
159 159
160 shn_configurewin = gtk_window_new(GTK_WINDOW_TOPLEVEL); 160 shn_configurewin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
161 gtk_signal_connect(GTK_OBJECT(shn_configurewin), "destroy", GTK_SIGNAL_FUNC(gtk_widget_destroyed), &shn_configurewin); 161 gtk_signal_connect(GTK_OBJECT(shn_configurewin), "destroy", GTK_SIGNAL_FUNC(gtk_widget_destroyed), &shn_configurewin);