Author: nick
Date: 2007-10-17 09:48:30 +0000 (Wed, 17 Oct 2007)
New Revision: 26140

Modified:
   mousepad/branches/nick_0_3/ChangeLog
   mousepad/branches/nick_0_3/mousepad/mousepad-util.c
   mousepad/branches/nick_0_3/mousepad/mousepad-window.c
Log:
* mousepad/mousepad-{window,util}.c: Fix compiler warnings.


Modified: mousepad/branches/nick_0_3/ChangeLog
===================================================================
--- mousepad/branches/nick_0_3/ChangeLog        2007-10-17 09:21:10 UTC (rev 
26139)
+++ mousepad/branches/nick_0_3/ChangeLog        2007-10-17 09:48:30 UTC (rev 
26140)
@@ -1,3 +1,7 @@
+2007-10-17      Nick Schermer <[EMAIL PROTECTED]>
+    * mousepad/mousepad-{window,util}.c: Fix compiler warnings.
+
+
 2007-10-16      Nick Schermer <[EMAIL PROTECTED]>
        * mousepad/mousepad-dialogs.c: Set the correct default return
          in the jump dialog.

Modified: mousepad/branches/nick_0_3/mousepad/mousepad-util.c
===================================================================
--- mousepad/branches/nick_0_3/mousepad/mousepad-util.c 2007-10-17 09:21:10 UTC 
(rev 26139)
+++ mousepad/branches/nick_0_3/mousepad/mousepad-util.c 2007-10-17 09:48:30 UTC 
(rev 26140)
@@ -487,15 +487,15 @@
   mark_start = gtk_text_buffer_create_mark (buffer, NULL, &start, TRUE);
   mark_iter  = gtk_text_buffer_create_mark (buffer, NULL, &iter, TRUE);
   mark_end   = gtk_text_buffer_create_mark (buffer, NULL, &end, TRUE);
+  
+  /* some to make the code easier to read */
+  search_backwards = ((flags & MOUSEPAD_SEARCH_FLAGS_DIR_BACKWARD) != 0);
+  wrap_around = ((flags & MOUSEPAD_SEARCH_FLAGS_WRAP_AROUND) != 0 && 
!gtk_text_iter_equal (&start, &iter));
 
   /* if we're not really searching anything, reset the cursor */
   if (string == NULL || *string == '\0')
     goto reset_cursor;
 
-  /* some to make the code easier to read */
-  search_backwards = (flags & MOUSEPAD_SEARCH_FLAGS_DIR_BACKWARD) != 0;
-  wrap_around = (flags & MOUSEPAD_SEARCH_FLAGS_WRAP_AROUND) != 0 && 
!gtk_text_iter_equal (&start, &iter);
-
   if (search_backwards)
     {
       /* reverse the search string */

Modified: mousepad/branches/nick_0_3/mousepad/mousepad-window.c
===================================================================
--- mousepad/branches/nick_0_3/mousepad/mousepad-window.c       2007-10-17 
09:21:10 UTC (rev 26139)
+++ mousepad/branches/nick_0_3/mousepad/mousepad-window.c       2007-10-17 
09:48:30 UTC (rev 26140)
@@ -1020,6 +1020,9 @@
 
   /* create the tab label */
   label = mousepad_document_get_tab_label (document);
+  
+  /* get active page */
+  page = gtk_notebook_get_current_page (GTK_NOTEBOOK (window->notebook));
 
   /* insert the page right of the active tab */
   page = gtk_notebook_insert_page (GTK_NOTEBOOK (window->notebook), GTK_WIDGET 
(document), label, page + 1);

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to