[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [VIRT-VIEWER PATCH] Add G_GNUC_UNUSED macro to the zoom functions



Hi,
this is the next patch I did yesterday when I was solving the problem with the read-only flag (posted few minutes ago to the list) since I saw some warnings about unused GtkWidgets (menu widgets) when recompiling so this is the patch to add this macro not to print out those warning messages when compiling with -Wall option which is set by default.

Michal

Signed-off-by: Michal Novotny <minovotn redhat com>

--
Michal Novotny<minovotn redhat com>, RHCE
Virtualization Team (xen userspace), Red Hat

diff -r eb3fb9f7894c src/viewer.c
--- a/src/viewer.c	Thu Sep 30 08:48:33 2010 +0000
+++ b/src/viewer.c	Thu Sep 30 12:00:08 2010 +0200
@@ -355,7 +355,7 @@
 			       height);
 }
 
-static void viewer_menu_view_zoom_out(GtkWidget *menu, VirtViewer *viewer)
+static void viewer_menu_view_zoom_out(GtkWidget *menu G_GNUC_UNUSED, VirtViewer *viewer)
 {
 	viewer->zoomlevel -= 10;
 	if (viewer->zoomlevel < 10)
@@ -364,7 +364,7 @@
 	viewer_resize_main_window(viewer);
 }
 
-static void viewer_menu_view_zoom_in(GtkWidget *menu, VirtViewer *viewer)
+static void viewer_menu_view_zoom_in(GtkWidget *menu G_GNUC_UNUSED, VirtViewer *viewer)
 {
 	viewer->zoomlevel += 10;
 	if (viewer->zoomlevel > 200)
@@ -373,7 +373,7 @@
 	viewer_resize_main_window(viewer);
 }
 
-static void viewer_menu_view_zoom_reset(GtkWidget *menu, VirtViewer *viewer)
+static void viewer_menu_view_zoom_reset(GtkWidget *menu G_GNUC_UNUSED, VirtViewer *viewer)
 {
 	viewer->zoomlevel = 100;
 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]