summaryrefslogtreecommitdiff
path: root/mate-screenshot/src/screenshot-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-screenshot/src/screenshot-dialog.c')
-rw-r--r--mate-screenshot/src/screenshot-dialog.c38
1 files changed, 21 insertions, 17 deletions
diff --git a/mate-screenshot/src/screenshot-dialog.c b/mate-screenshot/src/screenshot-dialog.c
index 118e03ee..cd1afeb2 100644
--- a/mate-screenshot/src/screenshot-dialog.c
+++ b/mate-screenshot/src/screenshot-dialog.c
@@ -1,23 +1,26 @@
-/* screenshot-dialog.c - main MATE Screenshot dialog
+/* Copyright (C) 2001-2006 Jonathan Blandford <[email protected]>
+ * Copyright (C) 2012-2021 MATE Developers
*
- * Copyright (C) 2001-2006 Jonathan Blandford <[email protected]>
+ * This file is part of MATE Utils.
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * MATE Utils is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * MATE Utils is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * You should have received a copy of the GNU General Public License
+ * along with MATE Utils. If not, see <https://www.gnu.org/licenses/>.
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include <string.h>
#include <stdlib.h>
@@ -164,7 +167,6 @@ drag_begin (GtkWidget *widget,
dialog->drag_x, dialog->drag_y);
}
-
ScreenshotDialog *
screenshot_dialog_new (GdkPixbuf *screenshot,
char *initial_uri,
@@ -251,10 +253,12 @@ screenshot_dialog_new (GdkPixbuf *screenshot,
gtk_frame_set_shadow_type (GTK_FRAME (aspect_frame), GTK_SHADOW_IN);
/* setup dnd */
- g_signal_connect (G_OBJECT (preview_darea), "drag_begin",
- G_CALLBACK (drag_begin), dialog);
- g_signal_connect (G_OBJECT (preview_darea), "drag_data_get",
- G_CALLBACK (drag_data_get), dialog);
+ g_signal_connect (preview_darea, "drag_begin",
+ G_CALLBACK (drag_begin),
+ dialog);
+ g_signal_connect (preview_darea, "drag_data_get",
+ G_CALLBACK (drag_data_get),
+ dialog);
gtk_widget_show_all (toplevel);