Skip to content
Snippets Groups Projects
Commit 0c0f238a authored by Jerome Guelfucci's avatar Jerome Guelfucci
Browse files

Fix a bunch of compilation warnings.

(Old svn revision: 6374)
parent 3ca8e401
No related branches found
No related tags found
No related merge requests found
2008-12-28 jeromeg
* Fix a bunch of compilation warnings.
2008-12-28 jeromeg
* lib/screenshooter-dialogs.c (screenshooter_dialog_new): improve a
......
......@@ -17,7 +17,12 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* */
#ifndef __HAVE_ACTIONS_H__
#define __HAVE_ACTIONS_H__
#include "screenshooter-utils.h"
#include "screenshooter-dialogs.h"
void screenshooter_take_and_output_screenshot (ScreenshotData *sd);
#endif
......@@ -460,7 +460,7 @@ GtkWidget *screenshooter_dialog_new (ScreenshotData *sd,
GtkWidget *clipboard_radio_button;
#ifdef HAVE_GIO
GtkWidget *open_with_label, *open_with_alignment;
GtkWidget *open_with_alignment;
GtkWidget *open_with_box, *open_with_radio_button;
GtkWidget *application_label;
......@@ -979,7 +979,7 @@ gchar
gchar *default_dir)
{
GdkPixbuf *thumbnail;
gchar *filename = NULL, *savename = NULL;;
gchar *filename = NULL, *savename = NULL;
GtkWidget *preview;
GtkWidget *chooser;
......
......@@ -16,6 +16,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __HAVE_DIALOGS_H__
#define __HAVE_DIALOGS_H__
#ifdef HAVE_CONFIG_H
#include <config.h>
......@@ -40,3 +43,4 @@ gchar
*screenshooter_save_screenshot (GdkPixbuf *screenshot,
gboolean show_save_dialog,
gchar *default_dir);
#endif
......@@ -124,12 +124,11 @@ static GdkPixbuf
static GdkPixbuf
*get_rectangle_screenshot ()
*get_rectangle_screenshot (void)
{
GdkPixbuf *screenshot = NULL;
/* Get display and root window */
GdkDisplay *display = gdk_display_get_default ();
/* Get root window */
GdkWindow *root_window = gdk_get_default_root_window ();
GdkGCValues gc_values;
......
......@@ -155,8 +155,9 @@ cb_dialog_response (GtkWidget *dialog, int response,
int main(int argc, char **argv)
{
GError *cli_error = NULL;
GdkPixbuf *screenshot;
ScreenshotData *sd = g_new0 (ScreenshotData, 1);
gchar *rc_file =
xfce_resource_lookup (XFCE_RESOURCE_CONFIG,
"xfce4/xfce4-screenshooter");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment