Commit c62f70ab authored by Adrian Likins's avatar Adrian Likins
Browse files

added a call to gtk_window_set_wmclass to most of the gimp

        dialogs

-adrian
parent fe876df0
......@@ -57,6 +57,7 @@ static char *scroll_text[] =
"Simon Janes",
"Tim Janik",
"Tuomas Kuosmanen",
"Peter Kirchgessner",
"Karl LaRocca",
"Jens Lautenbacher",
"Raph Levien",
......@@ -111,6 +112,7 @@ about_dialog_create (int timeout)
if (!about_dialog)
{
about_dialog = gtk_window_new (GTK_WINDOW_DIALOG);
gtk_window_set_wmclass (GTK_WINDOW (about_dialog), "about_dialog", "Gimp");
gtk_window_set_title (GTK_WINDOW (about_dialog), "About the GIMP");
gtk_window_set_policy (GTK_WINDOW (about_dialog), FALSE, FALSE, FALSE);
gtk_window_position (GTK_WINDOW (about_dialog), GTK_WIN_POS_CENTER);
......
......@@ -312,6 +312,7 @@ file_new_cmd_callback (GtkWidget *widget,
vals->type = RGB; /* no indexed images */
vals->dlg = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (vals->dlg), "new_image", "Gimp");
gtk_window_set_title (GTK_WINDOW (vals->dlg), "New Image");
gtk_window_position (GTK_WINDOW (vals->dlg), GTK_WIN_POS_MOUSE);
......@@ -995,6 +996,7 @@ file_pref_cmd_callback (GtkWidget *widget,
file_prefs_strset (&old_gradient_path, edit_gradient_path);
prefs_dlg = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (prefs_dlg), "preferences", "Gimp");
gtk_window_set_title (GTK_WINDOW (prefs_dlg), "Preferences");
/* handle the wm close signal */
......@@ -2109,6 +2111,7 @@ image_resize_cmd_callback (GtkWidget *widget,
/* the dialog */
image_resize->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (image_resize->shell), "image_resize", "Gimp");
gtk_window_set_title (GTK_WINDOW (image_resize->shell), "Image Resize");
gtk_window_set_policy (GTK_WINDOW (image_resize->shell), FALSE, FALSE, TRUE);
gtk_window_position (GTK_WINDOW (image_resize->shell), GTK_WIN_POS_MOUSE);
......@@ -2155,6 +2158,7 @@ image_scale_cmd_callback (GtkWidget *widget,
/* the dialog */
image_scale->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (image_scale->shell), "image_scale", "Gimp");
gtk_window_set_title (GTK_WINDOW (image_scale->shell), "Image Scale");
gtk_window_set_policy (GTK_WINDOW (image_scale->shell), FALSE, FALSE, TRUE);
gtk_window_position (GTK_WINDOW (image_scale->shell), GTK_WIN_POS_MOUSE);
......
......@@ -304,6 +304,7 @@ plug_in_init ()
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
......@@ -313,9 +314,11 @@ plug_in_init ()
(proc_def->db_info.num_args == 0) &&
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}
......@@ -2861,6 +2864,7 @@ plug_in_progress_init (PlugIn *plug_in,
if (!plug_in->progress)
{
plug_in->progress = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (plug_in->progress), "plug_in_progress", "Gimp");
gtk_window_set_title (GTK_WINDOW (plug_in->progress), prune_filename (plug_in->args[0]));
gtk_widget_set_uposition (plug_in->progress, progress_x, progress_y);
gtk_signal_connect (GTK_OBJECT (plug_in->progress), "destroy",
......
......@@ -137,6 +137,7 @@ make_initialization_status_window(void)
GtkWidget *vbox;
win_initstatus = gtk_window_new(GTK_WINDOW_DIALOG);
gtk_window_set_wmclass (GTK_WINDOW(win_initstatus), "gimp_startup", "Gimp");
gtk_window_set_title(GTK_WINDOW(win_initstatus),
"GIMP Startup");
......@@ -223,8 +224,11 @@ app_init ()
if (gimp_dir[0] != '\000')
{
sprintf (filename, "%s/gtkrc", gimp_dir);
if (be_verbose == TRUE)
g_print ("parsing \"%s\"\n", filename);
app_init_update_status("Resource configuration", filename, -1);
gtk_rc_parse (filename);
}
......@@ -367,6 +371,7 @@ really_quit_dialog ()
menus_set_sensitive ("<Image>/File/Quit", FALSE);
dialog = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (dialog), "really_quit", "Gimp");
gtk_window_set_title (GTK_WINDOW (dialog), "Really Quit?");
gtk_window_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area), 2);
......
......@@ -30,5 +30,6 @@
extern int no_interface;
extern int no_data;
extern int be_verbose;
#endif /* APPENV_H */
......@@ -383,6 +383,7 @@ color_balance_new_dialog ()
/* The shell and main vbox */
cbd->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (cbd->shell), "color_balance", "Gimp");
gtk_window_set_title (GTK_WINDOW (cbd->shell), "Color Balance");
/* handle the wm close signal */
......
......@@ -440,6 +440,7 @@ curves_new_dialog ()
/* The shell and main vbox */
cd->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (cd->shell), "curves", "Gimp");
gtk_window_set_title (GTK_WINDOW (cd->shell), "Curves");
gtk_signal_connect (GTK_OBJECT (cd->shell), "delete_event",
......
......@@ -447,6 +447,7 @@ hue_saturation_new_dialog ()
/* The shell and main vbox */
hsd->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (hsd->shell), "hue_saturation", "Gimp");
gtk_window_set_title (GTK_WINDOW (hsd->shell), "Hue-Saturation");
/* handle the wm close signal */
......
......@@ -390,6 +390,7 @@ threshold_new_dialog ()
/* The shell and main vbox */
td->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (td->shell), "threshold", "Gimp");
gtk_window_set_title (GTK_WINDOW (td->shell), "Threshold");
/* handle the wm close signal */
......
......@@ -329,6 +329,7 @@ brightness_contrast_new_dialog ()
/* The shell and main vbox */
bcd->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (bcd->shell), "brightness_contrast", "Gimp");
gtk_window_set_title (GTK_WINDOW (bcd->shell), "Brightness-Contrast");
/* handle wm close signal */
......
......@@ -137,6 +137,7 @@ brush_select_new ()
/* The shell and main vbox */
bsp->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (bsp->shell), "brushselection", "Gimp");
gtk_window_set_title (GTK_WINDOW (bsp->shell), "Brush Selection");
gtk_window_set_policy(GTK_WINDOW(bsp->shell), TRUE, TRUE, FALSE);
vbox = gtk_vbox_new (FALSE, 1);
......
......@@ -559,6 +559,7 @@ by_color_select_new_dialog ()
/* The shell and main vbox */
bcd->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (bcd->shell), "by_color_selection", "Gimp");
gtk_window_set_title (GTK_WINDOW (bcd->shell), "By Color Selection");
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (bcd->shell)->action_area), 2);
......
......@@ -101,6 +101,7 @@ channel_ops_offset (void *gimage_ptr)
off_d->gimage_id = gimage->ID;
off_d->dlg = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (off_d->dlg), "offset", "Gimp");
gtk_window_set_title (GTK_WINDOW (off_d->dlg), "Offset");
/* handle the wm close signal */
......
......@@ -518,7 +518,7 @@ channels_dialog_set_menu_sensitivity ()
/* lower channel */
gtk_widget_set_sensitive (channels_ops[2].widget, !fs_sensitive && aux_sensitive);
/* duplicate channel */
gtk_widget_set_sensitive (channels_ops[3].widget, !fs_sensitive && aux_sensitive);
gtk_widget_set_sensitive (channels_ops[3].widget, !fs_sensitive );
/* delete channel */
gtk_widget_set_sensitive (channels_ops[4].widget, !fs_sensitive && aux_sensitive);
/* channel to selection */
......@@ -1722,6 +1722,7 @@ channels_dialog_new_channel_query (int gimage_id)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "new_channel_options", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "New Channel Options");
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
......@@ -1895,6 +1896,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "edit_channel_atributes", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Edit Channel Attributes");
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
......
......@@ -383,6 +383,7 @@ color_balance_new_dialog ()
/* The shell and main vbox */
cbd->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (cbd->shell), "color_balance", "Gimp");
gtk_window_set_title (GTK_WINDOW (cbd->shell), "Color Balance");
/* handle the wm close signal */
......
......@@ -175,6 +175,7 @@ color_select_new (int r,
color_select_update_pos (csp);
csp->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (csp->shell), "color_selection", "Gimp");
gtk_window_set_title (GTK_WINDOW (csp->shell), "Color Selection");
gtk_window_set_policy (GTK_WINDOW (csp->shell), FALSE, FALSE, FALSE);
gtk_widget_set_uposition (csp->shell, color_select_x, color_select_y);
......
......@@ -312,6 +312,7 @@ file_new_cmd_callback (GtkWidget *widget,
vals->type = RGB; /* no indexed images */
vals->dlg = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (vals->dlg), "new_image", "Gimp");
gtk_window_set_title (GTK_WINDOW (vals->dlg), "New Image");
gtk_window_position (GTK_WINDOW (vals->dlg), GTK_WIN_POS_MOUSE);
......@@ -995,6 +996,7 @@ file_pref_cmd_callback (GtkWidget *widget,
file_prefs_strset (&old_gradient_path, edit_gradient_path);
prefs_dlg = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (prefs_dlg), "preferences", "Gimp");
gtk_window_set_title (GTK_WINDOW (prefs_dlg), "Preferences");
/* handle the wm close signal */
......@@ -2109,6 +2111,7 @@ image_resize_cmd_callback (GtkWidget *widget,
/* the dialog */
image_resize->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (image_resize->shell), "image_resize", "Gimp");
gtk_window_set_title (GTK_WINDOW (image_resize->shell), "Image Resize");
gtk_window_set_policy (GTK_WINDOW (image_resize->shell), FALSE, FALSE, TRUE);
gtk_window_position (GTK_WINDOW (image_resize->shell), GTK_WIN_POS_MOUSE);
......@@ -2155,6 +2158,7 @@ image_scale_cmd_callback (GtkWidget *widget,
/* the dialog */
image_scale->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (image_scale->shell), "image_scale", "Gimp");
gtk_window_set_title (GTK_WINDOW (image_scale->shell), "Image Scale");
gtk_window_set_policy (GTK_WINDOW (image_scale->shell), FALSE, FALSE, TRUE);
gtk_window_position (GTK_WINDOW (image_scale->shell), GTK_WIN_POS_MOUSE);
......
......@@ -308,6 +308,7 @@ convert_to_indexed (void *gimage_ptr)
dialog->monopal_flag = FALSE;
dialog->reusepal_flag = FALSE;
dialog->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (dialog->shell), "indexed_color_conversion", "Gimp");
gtk_window_set_title (GTK_WINDOW (dialog->shell), "Indexed Color Conversion");
gtk_signal_connect (GTK_OBJECT (dialog->shell), "delete_event",
GTK_SIGNAL_FUNC (indexed_delete_callback),
......
......@@ -589,6 +589,7 @@ paste_named_buffer (GDisplay *gdisp)
pn_dlg->gdisp = gdisp;
pn_dlg->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (pn_dlg->shell), "paste_named_buffer", "Gimp");
gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), "Paste Named Buffer");
gtk_window_position (GTK_WINDOW (pn_dlg->shell), GTK_WIN_POS_MOUSE);
......
......@@ -101,6 +101,7 @@ channel_ops_offset (void *gimage_ptr)
off_d->gimage_id = gimage->ID;
off_d->dlg = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (off_d->dlg), "offset", "Gimp");
gtk_window_set_title (GTK_WINDOW (off_d->dlg), "Offset");
/* handle the wm close signal */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment