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
3905c694
Commit
3905c694
authored
Feb 22, 1998
by
Manish Singh
Browse files
refcount fixups...
-Yosh
parent
126b6cec
Changes
7
Hide whitespace changes
Inline
Side-by-side
libgimp/gimpprocbrowserdialog.c
View file @
3905c694
...
...
@@ -483,10 +483,12 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide
(
dbbrowser
->
dlg
);
gtk_widget_destroy
(
dbbrowser
->
dlg
);
}
else
}
else
{
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy
(
dbbrowser
->
dlg
);
gtk_main_quit
();
}
}
}
static
void
dialog_apply_callback
(
GtkWidget
*
widget
,
...
...
libgimp/gimpprocview.c
View file @
3905c694
...
...
@@ -483,10 +483,12 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide
(
dbbrowser
->
dlg
);
gtk_widget_destroy
(
dbbrowser
->
dlg
);
}
else
}
else
{
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy
(
dbbrowser
->
dlg
);
gtk_main_quit
();
}
}
}
static
void
dialog_apply_callback
(
GtkWidget
*
widget
,
...
...
plug-ins/animationplay/animationplay.c
View file @
3905c694
...
...
@@ -297,7 +297,7 @@ build_dialog(GImageType basetype,
gtk_window_position
(
GTK_WINDOW
(
dlg
),
GTK_WIN_POS_MOUSE
);
gtk_signal_connect
(
GTK_OBJECT
(
dlg
),
"destroy"
,
(
GtkSignalFunc
)
window_close_callback
,
NULL
);
dlg
);
/* Action area - 'close' button only. */
...
...
@@ -306,7 +306,7 @@ build_dialog(GImageType basetype,
GTK_WIDGET_SET_FLAGS
(
button
,
GTK_CAN_DEFAULT
);
gtk_signal_connect_object
(
GTK_OBJECT
(
button
),
"clicked"
,
(
GtkSignalFunc
)
window_close_callback
,
NULL
);
dlg
);
gtk_box_pack_start
(
GTK_BOX
(
GTK_DIALOG
(
dlg
)
->
action_area
),
button
,
TRUE
,
TRUE
,
0
);
gtk_widget_grab_default
(
button
);
...
...
@@ -883,6 +883,7 @@ static void
window_close_callback
(
GtkWidget
*
widget
,
gpointer
data
)
{
gtk_widget_destroy
(
GTK_WIDGET
(
data
));
gtk_main_quit
();
}
...
...
plug-ins/common/animationplay.c
View file @
3905c694
...
...
@@ -297,7 +297,7 @@ build_dialog(GImageType basetype,
gtk_window_position
(
GTK_WINDOW
(
dlg
),
GTK_WIN_POS_MOUSE
);
gtk_signal_connect
(
GTK_OBJECT
(
dlg
),
"destroy"
,
(
GtkSignalFunc
)
window_close_callback
,
NULL
);
dlg
);
/* Action area - 'close' button only. */
...
...
@@ -306,7 +306,7 @@ build_dialog(GImageType basetype,
GTK_WIDGET_SET_FLAGS
(
button
,
GTK_CAN_DEFAULT
);
gtk_signal_connect_object
(
GTK_OBJECT
(
button
),
"clicked"
,
(
GtkSignalFunc
)
window_close_callback
,
NULL
);
dlg
);
gtk_box_pack_start
(
GTK_BOX
(
GTK_DIALOG
(
dlg
)
->
action_area
),
button
,
TRUE
,
TRUE
,
0
);
gtk_widget_grab_default
(
button
);
...
...
@@ -883,6 +883,7 @@ static void
window_close_callback
(
GtkWidget
*
widget
,
gpointer
data
)
{
gtk_widget_destroy
(
GTK_WIDGET
(
data
));
gtk_main_quit
();
}
...
...
plug-ins/dbbrowser/dbbrowser_utils.c
View file @
3905c694
...
...
@@ -483,10 +483,12 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide
(
dbbrowser
->
dlg
);
gtk_widget_destroy
(
dbbrowser
->
dlg
);
}
else
}
else
{
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy
(
dbbrowser
->
dlg
);
gtk_main_quit
();
}
}
}
static
void
dialog_apply_callback
(
GtkWidget
*
widget
,
...
...
plug-ins/dbbrowser/gimpprocbrowser.c
View file @
3905c694
...
...
@@ -483,10 +483,12 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide
(
dbbrowser
->
dlg
);
gtk_widget_destroy
(
dbbrowser
->
dlg
);
}
else
}
else
{
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy
(
dbbrowser
->
dlg
);
gtk_main_quit
();
}
}
}
static
void
dialog_apply_callback
(
GtkWidget
*
widget
,
...
...
plug-ins/dbbrowser/gimpprocview.c
View file @
3905c694
...
...
@@ -483,10 +483,12 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide
(
dbbrowser
->
dlg
);
gtk_widget_destroy
(
dbbrowser
->
dlg
);
}
else
}
else
{
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy
(
dbbrowser
->
dlg
);
gtk_main_quit
();
}
}
}
static
void
dialog_apply_callback
(
GtkWidget
*
widget
,
...
...
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