summaryrefslogtreecommitdiff
path: root/mate-panel/libpanel-util/panel-gtk.c
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2023-11-15 15:10:11 +0100
committerraveit65 <[email protected]>2024-02-04 18:37:58 +0100
commit62fabfc793b545250dafaf37f75650cbfdce095f (patch)
tree813bd86b3926f24be1f17a1830f2f3d65fd4ec8a /mate-panel/libpanel-util/panel-gtk.c
parentf98be9734446e1b620312b69dc8fa8ed0f0997d9 (diff)
downloadmate-panel-62fabfc793b545250dafaf37f75650cbfdce095f.tar.bz2
mate-panel-62fabfc793b545250dafaf37f75650cbfdce095f.tar.xz
Reduce scope of variables
Mostly found by cppcheck. origin commit was: https://github.com/mate-desktop/mate-panel/commit/96c7ebc
Diffstat (limited to 'mate-panel/libpanel-util/panel-gtk.c')
-rw-r--r--mate-panel/libpanel-util/panel-gtk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mate-panel/libpanel-util/panel-gtk.c b/mate-panel/libpanel-util/panel-gtk.c
index d638d75d..3672fca8 100644
--- a/mate-panel/libpanel-util/panel-gtk.c
+++ b/mate-panel/libpanel-util/panel-gtk.c
@@ -119,7 +119,6 @@ panel_file_chooser_dialog_new_valist (const gchar *title,
{
GtkWidget *result;
const char *button_text = first_button_text;
- gint response_id;
result = g_object_new (GTK_TYPE_FILE_CHOOSER_DIALOG,
"title", title,
@@ -131,7 +130,7 @@ panel_file_chooser_dialog_new_valist (const gchar *title,
while (button_text)
{
- response_id = va_arg (varargs, gint);
+ gint response_id = va_arg (varargs, gint);
if (g_strcmp0 (button_text, "process-stop") == 0)
panel_dialog_add_button (GTK_DIALOG (result), _("_Cancel"), button_text, response_id);