[evolution-patches] [calendar-alarms] fix 314550



hi

    alarm dialog window gets big with the 
    description of appointment.
    this patch makes it a scroll window 
    and so fixes #314550
 
  regards
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2836
diff -u -p -t -r1.2836 ChangeLog
--- ChangeLog	8 Nov 2005 09:17:49 -0000	1.2836
+++ ChangeLog	9 Nov 2005 09:42:02 -0000
@@ -1,3 +1,14 @@
+2005-11-09  P. S. Chakravarthi <pchakravarthi novell com>
+
+        Fixes #314550
+        * gui/alarm-notify/alarm-notify.glade: modified the 
+        description widget to a scrolled window.
+        * gui/alarm-notify/alarm-notify-dialog.c (fill_in_labels):
+        modified the way in which description needs to be filled 
+        to reflect the change of the description from a GtkLabel
+        to a GtkScrolledWindow.
+        
+
 2005-11-08  P. S. Chakravarthi <pchakravarthi novell com>
 
         Fixes #316710
Index: gui/alarm-notify/alarm-notify-dialog.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/alarm-notify/alarm-notify-dialog.c,v
retrieving revision 1.36
diff -u -p -t -r1.36 alarm-notify-dialog.c
--- gui/alarm-notify/alarm-notify-dialog.c	30 Sep 2005 14:39:40 -0000	1.36
+++ gui/alarm-notify/alarm-notify-dialog.c	9 Nov 2005 09:42:02 -0000
@@ -32,6 +32,7 @@
 #include <gtk/gtksignal.h>
 #include <gtk/gtkscrolledwindow.h>
 #include <gtk/gtkwindow.h>
+#include <gtk/gtk.h>
 #include <libgnome/gnome-i18n.h>
 #if 0 
 #  include <libgnomeui/gnome-winhints.h>
@@ -393,6 +394,11 @@ static void 
 fill_in_labels (AlarmNotify *an, const gchar *summary, const gchar *description, 
                 const gchar *location, time_t occur_start, time_t occur_end)
 {
-        gtk_label_set_text (GTK_LABEL (an->description), description);
+        GtkTextTagTable *table = gtk_text_tag_table_new ();
+        GtkTextBuffer *buffer =  gtk_text_buffer_new (table);
+        gtk_text_buffer_set_text (buffer, description, -1);
+        gtk_text_view_set_buffer (GTK_TEXT_VIEW (an->description), buffer);
         gtk_label_set_text (GTK_LABEL (an->location), location);                  
+        g_object_unref (table);
+        g_object_unref (buffer);
 }
Index: gui/alarm-notify/alarm-notify.glade
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/alarm-notify/alarm-notify.glade,v
retrieving revision 1.12
diff -u -p -t -r1.12 alarm-notify.glade
--- gui/alarm-notify/alarm-notify.glade	12 Aug 2005 13:55:51 -0000	1.12
+++ gui/alarm-notify/alarm-notify.glade	9 Nov 2005 09:42:02 -0000
@@ -126,32 +126,34 @@
                       <property name="homogeneous">False</property>
                       <property name="spacing">12</property>
 
-                      <child>
-                        <widget class="GtkLabel" id="description-label">
-                          <property name="visible">True</property>
-                          <property name="can_focus">True</property>
-                          <property name="label" translatable="yes">description of appointment</property>
-                          <property name="use_underline">False</property>
-                          <property name="use_markup">True</property>
-                          <property name="justify">GTK_JUSTIFY_LEFT</property>
-                          <property name="wrap">True</property>
-                          <property name="selectable">True</property>
-                          <property name="xalign">0</property>
-                          <property name="yalign">0.5</property>
-                          <property name="xpad">0</property>
-                          <property name="ypad">0</property>
-                          <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
-                          <property name="width_chars">-1</property>
-                          <property name="single_line_mode">False</property>
-                          <property name="angle">0</property>
-                        </widget>
-                        <packing>
-                          <property name="padding">0</property>
-                          <property name="expand">False</property>
-                          <property name="fill">False</property>
-                        </packing>
+                        <child>
+                                <widget class="GtkScrolledWindow" id="description">
+                                  <property name="visible">True</property>
+                                  <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+                                  <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+                                  <property name="shadow_type">GTK_SHADOW_IN</property>
+                                  <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
+                                 <child>
+                                    <widget class="GtkTextView" id="description-label">
+                                      <property name="visible">True</property>
+                                      <property name="can_focus">True</property>
+                                      <property name="editable">False</property>
+                                      <property name="overwrite">False</property>
+                                      <property name="accepts_tab">True</property>
+                                      <property name="justification">GTK_JUSTIFY_LEFT</property>
+                                      <property name="wrap_mode">GTK_WRAP_WORD</property>
+                                      <property name="cursor_visible">True</property>
+                                      <property name="pixels_above_lines">0</property>
+                                      <property name="pixels_below_lines">0</property>
+                                      <property name="pixels_inside_wrap">0</property>
+                                      <property name="left_margin">0</property>
+                                      <property name="right_margin">0</property>
+                                      <property name="indent">0</property>
+                                      <property name="text" translatable="yes"></property>
+                                    </widget>
+                                  </child>
+                                </widget>
                       </child>
-
                       <child>
                         <widget class="GtkTable" id="table1">
                           <property name="visible">True</property>


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