Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
c62f70ab
Commit
c62f70ab
authored
Jan 25, 1998
by
Adrian Likins
Browse files
added a call to gtk_window_set_wmclass to most of the gimp
dialogs -adrian
parent
fe876df0
Changes
117
Hide whitespace changes
Inline
Side-by-side
app/about_dialog.c
View file @
c62f70ab
...
...
@@ -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
);
...
...
app/actions/help-commands.c
View file @
c62f70ab
...
...
@@ -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
);
...
...
app/actions/plug-in-commands.c
View file @
c62f70ab
...
...
@@ -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"
,
...
...
app/app_procs.c
View file @
c62f70ab
...
...
@@ -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
);
...
...
app/appenv.h
View file @
c62f70ab
...
...
@@ -30,5 +30,6 @@
extern
int
no_interface
;
extern
int
no_data
;
extern
int
be_verbose
;
#endif
/* APPENV_H */
app/base/color-balance.c
View file @
c62f70ab
...
...
@@ -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 */
...
...
app/base/curves.c
View file @
c62f70ab
...
...
@@ -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"
,
...
...
app/base/hue-saturation.c
View file @
c62f70ab
...
...
@@ -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 */
...
...
app/base/threshold.c
View file @
c62f70ab
...
...
@@ -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 */
...
...
app/brightness_contrast.c
View file @
c62f70ab
...
...
@@ -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 */
...
...
app/brush_select.c
View file @
c62f70ab
...
...
@@ -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
);
...
...
app/by_color_select.c
View file @
c62f70ab
...
...
@@ -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
);
...
...
app/channel_ops.c
View file @
c62f70ab
...
...
@@ -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 */
...
...
app/channels_dialog.c
View file @
c62f70ab
...
...
@@ -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
);
...
...
app/color_balance.c
View file @
c62f70ab
...
...
@@ -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 */
...
...
app/color_select.c
View file @
c62f70ab
...
...
@@ -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
);
...
...
app/commands.c
View file @
c62f70ab
...
...
@@ -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
);
...
...
app/convert.c
View file @
c62f70ab
...
...
@@ -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
),
...
...
app/core/gimp-edit.c
View file @
c62f70ab
...
...
@@ -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
);
...
...
app/core/gimpdrawable-offset.c
View file @
c62f70ab
...
...
@@ -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 */
...
...
Prev
1
2
3
4
5
6
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment