]> Pileus Git - ~andy/gtk/commitdiff
remove unused variable (gtk_text_view_get_window): add warning about how
authorHavoc Pennington <hp@redhat.com>
Wed, 6 Feb 2002 22:22:37 +0000 (22:22 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Wed, 6 Feb 2002 22:22:37 +0000 (22:22 +0000)
2002-02-06  Havoc Pennington  <hp@redhat.com>

* gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
(gtk_text_view_get_window): add warning about how you
can't get the private window. #70683, and avoid default: in the
switch so we get "enum value unhandled" warnings

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextview.c

index ca832684f599bd432f13317e95f2f3ac846b482f..633111a19f576c3639f55bfe22e0261f0d04d4df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-02-06  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
+       (gtk_text_view_get_window): add warning about how you
+       can't get the private window. #70683, and avoid default: in the
+       switch so we get "enum value unhandled" warnings
+
 2002-02-06  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextchild.c: Add warnings if you try to use a child
index ca832684f599bd432f13317e95f2f3ac846b482f..633111a19f576c3639f55bfe22e0261f0d04d4df 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-06  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
+       (gtk_text_view_get_window): add warning about how you
+       can't get the private window. #70683, and avoid default: in the
+       switch so we get "enum value unhandled" warnings
+
 2002-02-06  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextchild.c: Add warnings if you try to use a child
index ca832684f599bd432f13317e95f2f3ac846b482f..633111a19f576c3639f55bfe22e0261f0d04d4df 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-06  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
+       (gtk_text_view_get_window): add warning about how you
+       can't get the private window. #70683, and avoid default: in the
+       switch so we get "enum value unhandled" warnings
+
 2002-02-06  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextchild.c: Add warnings if you try to use a child
index ca832684f599bd432f13317e95f2f3ac846b482f..633111a19f576c3639f55bfe22e0261f0d04d4df 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-06  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
+       (gtk_text_view_get_window): add warning about how you
+       can't get the private window. #70683, and avoid default: in the
+       switch so we get "enum value unhandled" warnings
+
 2002-02-06  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextchild.c: Add warnings if you try to use a child
index ca832684f599bd432f13317e95f2f3ac846b482f..633111a19f576c3639f55bfe22e0261f0d04d4df 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-06  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
+       (gtk_text_view_get_window): add warning about how you
+       can't get the private window. #70683, and avoid default: in the
+       switch so we get "enum value unhandled" warnings
+
 2002-02-06  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextchild.c: Add warnings if you try to use a child
index ca832684f599bd432f13317e95f2f3ac846b482f..633111a19f576c3639f55bfe22e0261f0d04d4df 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-06  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
+       (gtk_text_view_get_window): add warning about how you
+       can't get the private window. #70683, and avoid default: in the
+       switch so we get "enum value unhandled" warnings
+
 2002-02-06  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextchild.c: Add warnings if you try to use a child
index ca832684f599bd432f13317e95f2f3ac846b482f..633111a19f576c3639f55bfe22e0261f0d04d4df 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-06  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
+       (gtk_text_view_get_window): add warning about how you
+       can't get the private window. #70683, and avoid default: in the
+       switch so we get "enum value unhandled" warnings
+
 2002-02-06  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextchild.c: Add warnings if you try to use a child
index 08f016f5de5fb7371179c3de4891ab30391aa714..6c04881194331f275031a1715d77f788f808e2fd 100644 (file)
@@ -4704,7 +4704,6 @@ gtk_text_view_scroll_hpages (GtkTextView *text_view,
   gint cursor_x_pos, cursor_y_pos;
   GtkTextIter new_insert;
   gint y, height;
-  gint x, width;
   
   g_return_if_fail (text_view->hadjustment != NULL);
 
@@ -6695,11 +6694,14 @@ gtk_text_view_get_window (GtkTextView *text_view,
         return NULL;
       break;
 
-    default:
-      g_warning ("%s: Unknown GtkTextWindowType", G_STRLOC);
+    case GTK_TEXT_WINDOW_PRIVATE:
+      g_warning ("%s: You can't get GTK_TEXT_WINDOW_PRIVATE, it has \"PRIVATE\" in the name because it is private.", __FUNCTION__);
       return NULL;
       break;
     }
+
+  g_warning ("%s: Unknown GtkTextWindowType", __FUNCTION__);
+  return NULL;
 }
 
 /**