[Goodies-commits] r2178 - xfce4-notes-plugin/trunk/panel-plugin

Mike Massonnet mmassonnet at xfce.org
Sat Nov 25 19:15:31 CET 2006


Author: mmassonnet
Date: 2006-11-25 18:15:24 +0000 (Sat, 25 Nov 2006)
New Revision: 2178

Modified:
   xfce4-notes-plugin/trunk/panel-plugin/notes-window.c
Log:
Ooops

Modified: xfce4-notes-plugin/trunk/panel-plugin/notes-window.c
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/notes-window.c	2006-11-25 18:03:12 UTC (rev 2177)
+++ xfce4-notes-plugin/trunk/panel-plugin/notes-window.c	2006-11-25 18:15:24 UTC (rev 2178)
@@ -45,7 +45,7 @@
                                                  GtkWindow *);
 static gboolean     on_title_scroll             (GtkWidget *, 
                                                  GdkEventScroll *, 
-                                                 Note *);
+                                                 NotesPlugin *);
 static gboolean     on_note_key_press           (GtkWidget *, 
                                                  GdkEventKey *, 
                                                  NotesPlugin *);
@@ -169,7 +169,7 @@
                       G_CALLBACK (on_title_press), note->window);
 
     g_signal_connect (G_OBJECT (note->move_event_box), "scroll-event",
-                      G_CALLBACK (on_title_scroll), note);
+                      G_CALLBACK (on_title_scroll), notes);
 
     gtk_widget_realize (note->move_event_box);
 
@@ -353,8 +353,9 @@
 }
 
 static gboolean
-on_title_scroll (GtkWidget *widget, GdkEventScroll *event, Note *note)
+on_title_scroll (GtkWidget *widget, GdkEventScroll *event, NotesPlugin *notes)
 {
+    Note *note = notes->note;
     if (event->type == GDK_SCROLL)
       {
         if (GTK_WIDGET_VISIBLE (note->notebook))
@@ -366,12 +367,15 @@
           {
             /* Hide the text view */
             gtk_widget_hide (note->notebook);
+            gtk_widget_hide (note->statusbar);
             gtk_window_resize (GTK_WINDOW (note->window), note->w, 1);
           }
         else if (event->direction == GDK_SCROLL_DOWN)
           {
             /* Show the text view */
             gtk_widget_show (note->notebook);
+            if (notes->options.statusbar)
+                gtk_widget_show (note->statusbar);
             gtk_window_resize (GTK_WINDOW (note->window), note->w, note->h);
           }
       }




More information about the Goodies-commits mailing list