[gnome-flashback] end-session-dialog: don't override get_preferred_width



commit 99d82311410bcb554a325a215956f447e4e715b9
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Sep 14 00:13:32 2015 +0300

    end-session-dialog: don't override get_preferred_width
    
    Instead set label width to 70 characters.

 .../libend-session-dialog/gf-inhibit-dialog.c      |   10 ----------
 .../libend-session-dialog/gf-inhibit-dialog.ui     |    5 +++--
 2 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c 
b/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c
index d013ac9..4fd159b 100644
--- a/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c
+++ b/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c
@@ -837,14 +837,6 @@ gf_inhibit_dialog_stop_timer (GfInhibitDialog *dialog)
 }
 
 static void
-gf_inhibit_dialog_get_preferred_width (GtkWidget *widget,
-                                       gint      *minimum_width,
-                                       gint      *natural_width)
-{
-  *minimum_width = *natural_width = 460;
-}
-
-static void
 gf_inhibit_dialog_class_init (GfInhibitDialogClass *dialog_class)
 {
   GObjectClass *object_class;
@@ -862,8 +854,6 @@ gf_inhibit_dialog_class_init (GfInhibitDialogClass *dialog_class)
   object_class->constructor = gf_inhibit_dialog_constructor;
   object_class->dispose = gf_inhibit_dialog_dispose;
 
-  widget_class->get_preferred_width = gf_inhibit_dialog_get_preferred_width;
-
   signals[SIGNAL_RESPONSE] =
     g_signal_new ("response",
                   G_OBJECT_CLASS_TYPE (dialog_class),
diff --git a/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.ui 
b/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.ui
index 154c8ac..695b825 100644
--- a/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.ui
+++ b/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.ui
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.18.3 -->
+<!-- Generated with glade 3.19.0 -->
 <interface domain="gnome-flashback">
   <requires lib="gtk+" version="3.10"/>
   <template class="GfInhibitDialog" parent="GtkWindow">
@@ -77,9 +77,10 @@
             <property name="label" translatable="yes">Waiting for these applications to finish. Interrupting 
them can lead to loss of data.</property>
             <property name="justify">center</property>
             <property name="wrap">True</property>
+            <property name="max_width_chars">70</property>
           </object>
           <packing>
-            <property name="expand">True</property>
+            <property name="expand">False</property>
             <property name="fill">True</property>
             <property name="position">1</property>
           </packing>


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