gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r19640 - gnunet-gtk/src/fs


From: gnunet
Subject: [GNUnet-SVN] r19640 - gnunet-gtk/src/fs
Date: Thu, 2 Feb 2012 17:45:51 +0100

Author: grothoff
Date: 2012-02-02 17:45:51 +0100 (Thu, 02 Feb 2012)
New Revision: 19640

Added:
   gnunet-gtk/src/fs/gnunet-fs-gtk_main-window-view-toggles.c
Removed:
   gnunet-gtk/src/fs/gnunet-fs-gtk-main_window_view_toggles.c
Modified:
   gnunet-gtk/src/fs/Makefile.am
Log:
-renaming toggles

Modified: gnunet-gtk/src/fs/Makefile.am
===================================================================
--- gnunet-gtk/src/fs/Makefile.am       2012-02-02 16:42:51 UTC (rev 19639)
+++ gnunet-gtk/src/fs/Makefile.am       2012-02-02 16:45:51 UTC (rev 19640)
@@ -16,6 +16,7 @@
   gnunet-fs-gtk_common.c gnunet-fs-gtk_common.h \
   gnunet-fs-gtk_download-save-as.c gnunet-fs-gtk_download-save-as.h \
   gnunet-fs-gtk_event-handler.c gnunet-fs-gtk_event-handler.h \
+  gnunet-fs-gtk_main-window-view-toggles.c \
   gnunet-fs-gtk_publish-dialog.c \
   gnunet-fs-gtk_publish-edit-dialog.c gnunet-fs-gtk_publish-edit-dialog.h \
   gnunet-fs-gtk-main_window_meta_data_context_menu.c \
@@ -24,8 +25,7 @@
   gnunet-fs-gtk-main_window_file_download.c \
   gnunet-fs-gtk-main_window_namespace.c \
   gnunet-fs-gtk-main_window_search.c \
-  gnunet-fs-gtk-main_window_open_directory.c \
-  gnunet-fs-gtk-main_window_view_toggles.c 
+  gnunet-fs-gtk-main_window_open_directory.c 
 gnunet_fs_gtk_LDADD = \
   $(top_builddir)/src/lib/libgnunetgtk.la \
   @GTK_LIBS@ \

Deleted: gnunet-gtk/src/fs/gnunet-fs-gtk-main_window_view_toggles.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-main_window_view_toggles.c  2012-02-02 
16:42:51 UTC (rev 19639)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-main_window_view_toggles.c  2012-02-02 
16:45:51 UTC (rev 19640)
@@ -1,84 +0,0 @@
-/*
-     This file is part of GNUnet
-     (C) 2005, 2006, 2010 Christian Grothoff (and other contributing authors)
-
-     GNUnet 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, or (at your
-     option) any later version.
-
-     GNUnet 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.
-
-     You should have received a copy of the GNU General Public License
-     along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
-*/
-
-/**
- * @file src/fs/gnunet-fs-gtk-main_window_view_toggles.c
- * @author Christian Grothoff
- *
- * This file contains callbacks for the 'view' menu that toggle views.
- */
-#include "gnunet-fs-gtk_common.h"
-#include "gnunet-fs-gtk.h"
-
-
-/**
- * Toggle the visibility of a widget based on the checkeness
- * of a menu item.
- *
- * @param toggled_widget name of widget to toggle
- * @param toggle_menu name of menu entry
- */
-static void
-toggle_view (const char *toggled_widget, const char *toggle_menu)
-{
-  GtkCheckMenuItem *mi;
-  GtkWidget *widget;
-
-  widget = GTK_WIDGET (GNUNET_FS_GTK_get_main_window_object (toggled_widget));
-  mi = GTK_CHECK_MENU_ITEM (GNUNET_FS_GTK_get_main_window_object 
(toggle_menu));
-  if (gtk_check_menu_item_get_active (mi))
-    gtk_widget_show (widget);
-  else
-    gtk_widget_hide (widget);
-}
-
-
-/**
- * Preview view is toggled.
- */
-void
-GNUNET_GTK_main_menu_view_preview_toggled_cb (GtkWidget * dummy, gpointer data)
-{
-  toggle_view ("GNUNET_GTK_main_window_preview_image",
-               "GNUNET_GTK_main_menu_view_preview");
-}
-
-
-/**
- * Metadata view is toggled.
- */
-void
-GNUNET_GTK_main_menu_view_metadata_toggled_cb (GtkWidget * dummy, gpointer 
data)
-{
-  toggle_view ("GNUNET_GTK_main_window_metadata_treeview",
-               "GNUNET_GTK_main_menu_view_metadata");
-}
-
-/**
- * Preview view is toggled.
- */
-void
-GNUNET_GTK_main_menu_view_search_toggled_cb (GtkWidget * dummy, gpointer data)
-{
-  toggle_view ("main_window_search_hbox",
-               "GNUNET_GTK_main_menu_search_preview");
-}
-
-/* end of gnunet-fs-gtk-main_window_view_toggles.c */

Copied: gnunet-gtk/src/fs/gnunet-fs-gtk_main-window-view-toggles.c (from rev 
19630, gnunet-gtk/src/fs/gnunet-fs-gtk-main_window_view_toggles.c)
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk_main-window-view-toggles.c                  
        (rev 0)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk_main-window-view-toggles.c  2012-02-02 
16:45:51 UTC (rev 19640)
@@ -0,0 +1,92 @@
+/*
+     This file is part of GNUnet
+     (C) 2005, 2006, 2010 Christian Grothoff (and other contributing authors)
+
+     GNUnet 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, or (at your
+     option) any later version.
+
+     GNUnet 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.
+
+     You should have received a copy of the GNU General Public License
+     along with GNUnet; see the file COPYING.  If not, write to the
+     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+     Boston, MA 02111-1307, USA.
+*/
+
+/**
+ * @file src/fs/gnunet-fs-gtk_main-window-view-toggles.c
+ * @author Christian Grothoff
+ * @brief This file contains callbacks for the 'view' menu that toggle views.
+ */
+#include "gnunet-fs-gtk_common.h"
+#include "gnunet-fs-gtk.h"
+
+
+/**
+ * Toggle the visibility of a widget based on the checkeness
+ * of a menu item.
+ *
+ * @param toggled_widget name of widget to toggle
+ * @param toggle_menu name of menu entry
+ */
+static void
+toggle_view (const char *toggled_widget, const char *toggle_menu)
+{
+  GtkCheckMenuItem *mi;
+  GtkWidget *widget;
+
+  widget = GTK_WIDGET (GNUNET_FS_GTK_get_main_window_object (toggled_widget));
+  mi = GTK_CHECK_MENU_ITEM (GNUNET_FS_GTK_get_main_window_object 
(toggle_menu));
+  if (gtk_check_menu_item_get_active (mi))
+    gtk_widget_show (widget);
+  else
+    gtk_widget_hide (widget);
+}
+
+
+/**
+ * Preview view is toggled.
+ *
+ * @param dummy widget triggering the event
+ * @param gpointer main window builder (unused)
+ */
+void
+GNUNET_GTK_main_menu_view_preview_toggled_cb (GtkWidget * dummy, gpointer data)
+{
+  toggle_view ("GNUNET_GTK_main_window_preview_image",
+               "GNUNET_GTK_main_menu_view_preview");
+}
+
+
+/**
+ * Metadata view is toggled.
+ *
+ * @param dummy widget triggering the event
+ * @param gpointer main window builder (unused)
+ */
+void
+GNUNET_GTK_main_menu_view_metadata_toggled_cb (GtkWidget * dummy, gpointer 
data)
+{
+  toggle_view ("GNUNET_GTK_main_window_metadata_treeview",
+               "GNUNET_GTK_main_menu_view_metadata");
+}
+
+/**
+ * Preview view is toggled.
+ *
+ * @param dummy widget triggering the event
+ * @param gpointer main window builder (unused)
+ */
+void
+GNUNET_GTK_main_menu_view_search_toggled_cb (GtkWidget * dummy, gpointer data)
+{
+  toggle_view ("main_window_search_hbox",
+               "GNUNET_GTK_main_menu_search_preview");
+}
+
+/* end of gnunet-fs-gtk_main-window-view-toggles.c */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]