gnome-session r5129 - in trunk: . capplet data
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-session r5129 - in trunk: . capplet data
- Date: Mon, 29 Sep 2008 17:26:19 +0000 (UTC)
Author: chpe
Date: Mon Sep 29 17:26:18 2008
New Revision: 5129
URL: http://svn.gnome.org/viewvc/gnome-session?rev=5129&view=rev
Log:
Bug 551869 â minor HIG problems with the capplet
* capplet/gsm-properties-dialog.c: (edit_app_dialog),
(gsm_properties_dialog_init):
* data/session-properties.glade: Part I: correct spacings and
paddings, and make the dialogue resizable.
Modified:
trunk/ChangeLog
trunk/capplet/gsm-properties-dialog.c
trunk/data/session-properties.glade
Modified: trunk/capplet/gsm-properties-dialog.c
==============================================================================
--- trunk/capplet/gsm-properties-dialog.c (original)
+++ trunk/capplet/gsm-properties-dialog.c Mon Sep 29 17:26:18 2008
@@ -998,7 +998,7 @@
GTK_DIALOG_MODAL,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK,
- error_msg);
+ "%s", error_msg);
if (error != NULL) {
g_error_free (error);
@@ -1457,8 +1457,9 @@
widget = glade_xml_get_widget (dialog->priv->xml, "main-notebook");
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), widget);
- gtk_container_set_border_width (GTK_CONTAINER (dialog), 12);
- gtk_container_set_border_width (GTK_CONTAINER (widget), 5);
+ gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
+ gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
+ gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->vbox), 2);
gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
gtk_window_set_icon_name (GTK_WINDOW (dialog), "session-properties");
gtk_window_set_title (GTK_WINDOW (dialog), _("Sessions Preferences"));
Modified: trunk/data/session-properties.glade
==============================================================================
--- trunk/data/session-properties.glade (original)
+++ trunk/data/session-properties.glade Mon Sep 29 17:26:18 2008
@@ -1,6 +1,4 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.4.4 on Mon Aug 11 15:28:59 2008 -->
+<?xml version="1.0"?>
<glade-interface>
<widget class="GtkDialog" id="session_properties_edit_dialog">
<property name="border_width">5</property>
@@ -36,7 +34,6 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="label" translatable="yes">Browse...</property>
- <property name="response_id">0</property>
</widget>
<packing>
<property name="expand">False</property>
@@ -163,7 +160,7 @@
</child>
</widget>
<widget class="GtkDialog" id="session_properties_capplet">
- <property name="border_width">10</property>
+ <property name="border_width">5</property>
<property name="title" translatable="yes">Sessions Preferences</property>
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
<property name="icon_name">session-properties</property>
@@ -177,6 +174,7 @@
<widget class="GtkNotebook" id="main-notebook">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="border_width">5</property>
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
@@ -217,9 +215,10 @@
</widget>
</child>
<child>
- <widget class="GtkVBox" id="vbox2">
+ <widget class="GtkVButtonBox" id="vbuttonbox1">
<property name="visible">True</property>
- <property name="spacing">5</property>
+ <property name="spacing">6</property>
+ <property name="layout_style">GTK_BUTTONBOX_START</property>
<child>
<widget class="GtkButton" id="session_properties_add_button">
<property name="visible">True</property>
@@ -227,7 +226,6 @@
<property name="receives_default">True</property>
<property name="label">gtk-add</property>
<property name="use_stock">True</property>
- <property name="response_id">0</property>
</widget>
<packing>
<property name="expand">False</property>
@@ -241,7 +239,6 @@
<property name="receives_default">True</property>
<property name="label">gtk-remove</property>
<property name="use_stock">True</property>
- <property name="response_id">0</property>
</widget>
<packing>
<property name="expand">False</property>
@@ -256,19 +253,16 @@
<property name="receives_default">True</property>
<property name="label">gtk-edit</property>
<property name="use_stock">True</property>
- <property name="response_id">0</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="position">2</property>
</packing>
</child>
- <child>
- <placeholder/>
- </child>
</widget>
<packing>
<property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
@@ -285,22 +279,21 @@
<property name="label" translatable="yes">Startup Programs</property>
</widget>
<packing>
- <property name="type">tab</property>
<property name="tab_fill">False</property>
+ <property name="type">tab</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox3">
<property name="visible">True</property>
<property name="border_width">12</property>
- <property name="spacing">4</property>
+ <property name="spacing">6</property>
<child>
<widget class="GtkCheckButton" id="session_properties_remember_toggle">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Automatically remember running applications when logging out</property>
<property name="use_underline">True</property>
- <property name="response_id">0</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
@@ -309,15 +302,13 @@
</packing>
</child>
<child>
- <widget class="GtkHBox" id="hbox2">
+ <widget class="GtkHButtonBox" id="hbuttonbox1">
<property name="visible">True</property>
- <property name="homogeneous">True</property>
<child>
<widget class="GtkButton" id="session_properties_save_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <property name="response_id">0</property>
<child>
<widget class="GtkHBox" id="hbox2">
<property name="visible">True</property>
@@ -368,9 +359,9 @@
<property name="label" translatable="yes">Options</property>
</widget>
<packing>
- <property name="type">tab</property>
<property name="position">1</property>
<property name="tab_fill">False</property>
+ <property name="type">tab</property>
</packing>
</child>
</widget>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]