[Xfce4-commits] <xfce4-panel:andrzejr/clock> Removed "show-frame" property.
Andrzej
noreply at xfce.org
Mon Jan 21 01:40:06 CET 2013
Updating branch refs/heads/andrzejr/clock
to 3d96560710786462f56f0c0d6a888922794d5a6a (commit)
from 422239beb277a6e534e25bcf627470ce552a4918 (commit)
commit 3d96560710786462f56f0c0d6a888922794d5a6a
Author: Andrzej <ndrwrdck at gmail.com>
Date: Mon Jan 21 00:38:55 2013 +0000
Removed "show-frame" property.
plugins/clock/clock-dialog.glade | 15 ---------------
plugins/clock/clock.c | 28 ----------------------------
2 files changed, 0 insertions(+), 43 deletions(-)
diff --git a/plugins/clock/clock-dialog.glade b/plugins/clock/clock-dialog.glade
index 68e9639..ea9c5a4 100644
--- a/plugins/clock/clock-dialog.glade
+++ b/plugins/clock/clock-dialog.glade
@@ -101,21 +101,6 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="show-frame">
- <property name="label" translatable="yes">Show _frame</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="right_attach">2</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- </packing>
- </child>
- <child>
<object class="GtkEntry" id="tooltip-format">
<property name="visible">True</property>
<property name="can_focus">True</property>
diff --git a/plugins/clock/clock.c b/plugins/clock/clock.c
index b81af43..1022910 100644
--- a/plugins/clock/clock.c
+++ b/plugins/clock/clock.c
@@ -94,7 +94,6 @@ enum
{
PROP_0,
PROP_MODE,
- PROP_SHOW_FRAME,
PROP_TOOLTIP_FORMAT,
PROP_COMMAND,
PROP_ROTATE_VERTICALLY
@@ -130,7 +129,6 @@ struct _ClockPlugin
GtkWidget *calendar_window;
GtkWidget *calendar;
- guint show_frame : 1;
gchar *command;
ClockPluginMode mode;
guint rotate_vertically : 1;
@@ -220,13 +218,6 @@ clock_plugin_class_init (ClockPluginClass *klass)
EXO_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
- PROP_SHOW_FRAME,
- g_param_spec_boolean ("show-frame",
- NULL, NULL,
- TRUE,
- EXO_PARAM_READWRITE));
-
- g_object_class_install_property (gobject_class,
PROP_TOOLTIP_FORMAT,
g_param_spec_string ("tooltip-format",
NULL, NULL,
@@ -254,7 +245,6 @@ clock_plugin_init (ClockPlugin *plugin)
{
plugin->mode = CLOCK_PLUGIN_MODE_DEFAULT;
plugin->clock = NULL;
- plugin->show_frame = TRUE;
plugin->tooltip_format = g_strdup (DEFAULT_TOOLTIP_FORMAT);
plugin->tooltip_timeout = NULL;
plugin->command = NULL;
@@ -292,10 +282,6 @@ clock_plugin_get_property (GObject *object,
g_value_set_uint (value, plugin->mode);
break;
- case PROP_SHOW_FRAME:
- g_value_set_boolean (value, plugin->show_frame);
- break;
-
case PROP_TOOLTIP_FORMAT:
g_value_set_string (value, plugin->tooltip_format);
break;
@@ -323,7 +309,6 @@ clock_plugin_set_property (GObject *object,
GParamSpec *pspec)
{
ClockPlugin *plugin = XFCE_CLOCK_PLUGIN (object);
- gboolean show_frame;
gboolean rotate_vertically;
switch (prop_id)
@@ -336,14 +321,6 @@ clock_plugin_set_property (GObject *object,
}
break;
- case PROP_SHOW_FRAME:
- show_frame = g_value_get_boolean (value);
- if (plugin->show_frame != show_frame)
- {
- plugin->show_frame = show_frame;
- }
- break;
-
case PROP_TOOLTIP_FORMAT:
g_free (plugin->tooltip_format);
plugin->tooltip_format = g_value_dup_string (value);
@@ -463,7 +440,6 @@ clock_plugin_construct (XfcePanelPlugin *panel_plugin)
const PanelProperty properties[] =
{
{ "mode", G_TYPE_UINT },
- { "show-frame", G_TYPE_BOOLEAN },
{ "tooltip-format", G_TYPE_STRING },
{ "command", G_TYPE_STRING },
{ "rotate-vertically", G_TYPE_BOOLEAN },
@@ -832,10 +808,6 @@ clock_plugin_configure_plugin (XfcePanelPlugin *panel_plugin)
exo_mutual_binding_new (G_OBJECT (plugin), "mode",
G_OBJECT (object), "active");
- object = gtk_builder_get_object (builder, "show-frame");
- exo_mutual_binding_new (G_OBJECT (plugin), "show-frame",
- G_OBJECT (object), "active");
-
object = gtk_builder_get_object (builder, "tooltip-format");
exo_mutual_binding_new (G_OBJECT (plugin), "tooltip-format",
G_OBJECT (object), "text");
More information about the Xfce4-commits
mailing list