[gnome-panel] clock: don't use deprecated GtkMisc
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] clock: don't use deprecated GtkMisc
- Date: Tue, 4 Nov 2014 00:11:08 +0000 (UTC)
commit ba3dd6b9c8744a47bd112c48f44915b9f227974f
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Nov 3 22:35:43 2014 +0200
clock: don't use deprecated GtkMisc
applets/clock/clock-location-tile.c | 5 ++---
configure.ac | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/applets/clock/clock-location-tile.c b/applets/clock/clock-location-tile.c
index 294fc76..dc93d43 100644
--- a/applets/clock/clock-location-tile.c
+++ b/applets/clock/clock-location-tile.c
@@ -284,13 +284,13 @@ clock_location_tile_fill (ClockLocationTile *this)
priv->city_label = gtk_label_new (NULL);
gtk_widget_set_margin_end (priv->city_label, 3);
- gtk_misc_set_alignment (GTK_MISC (priv->city_label), 0, 0);
+ gtk_label_set_xalign (GTK_LABEL (priv->city_label), 0);
gtk_box_pack_start (GTK_BOX (head_section), priv->city_label, FALSE, FALSE, 0);
priv->time_label = gtk_label_new (NULL);
gtk_widget_set_margin_end (priv->time_label, 3);
- gtk_misc_set_alignment (GTK_MISC (priv->time_label), 0, 0);
+ gtk_label_set_yalign (GTK_LABEL (priv->time_label), 0);
priv->weather_icon = gtk_image_new ();
gtk_widget_set_valign (priv->weather_icon, GTK_ALIGN_START);
@@ -310,7 +310,6 @@ clock_location_tile_fill (ClockLocationTile *this)
_("Set location as current location and use its timezone for this
computer"));
priv->current_marker = gtk_image_new_from_icon_name ("go-home", GTK_ICON_SIZE_BUTTON);
- gtk_misc_set_alignment (GTK_MISC (priv->current_marker), 1.0, 0.5);
gtk_widget_set_no_show_all (priv->current_marker, TRUE);
priv->current_spacer = gtk_event_box_new ();
diff --git a/configure.ac b/configure.ac
index d097bed..a5d85a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,7 +89,7 @@ LIBGNOME_DESKTOP_REQUIRED=2.91.0
GDK_PIXBUF_REQUIRED=2.25.2
PANGO_REQUIRED=1.15.4
GLIB_REQUIRED=2.35.0
-GTK_REQUIRED=3.3.8
+GTK_REQUIRED=3.15.1
LIBWNCK_REQUIRED=3.4.6
LIBGNOME_MENU_REQUIRED=3.7.90
TELEPATHY_GLIB_REQUIRED=0.14.0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]