aboutsummaryrefslogtreecommitdiff
path: root/src/idomessagedialog.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-05-07 17:18:10 -0700
committerCharles Kerr <charles.kerr@canonical.com>2012-05-07 17:18:10 -0700
commit84a63033c820bf890e0bcecd2f07cc325c44e9e9 (patch)
tree64bc31aaac19f8c5785b851f3b07541d91d36a8c /src/idomessagedialog.c
parent78c634c4ff2d9f64712f4a667facc66dc48a9762 (diff)
downloadayatana-ido-84a63033c820bf890e0bcecd2f07cc325c44e9e9.tar.gz
ayatana-ido-84a63033c820bf890e0bcecd2f07cc325c44e9e9.tar.bz2
ayatana-ido-84a63033c820bf890e0bcecd2f07cc325c44e9e9.zip
require gtk3
Diffstat (limited to 'src/idomessagedialog.c')
-rw-r--r--src/idomessagedialog.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/idomessagedialog.c b/src/idomessagedialog.c
index d4a3e2f..d3f73aa 100644
--- a/src/idomessagedialog.c
+++ b/src/idomessagedialog.c
@@ -167,22 +167,14 @@ ido_message_dialog_focus_in_event (GtkWidget *widget,
IdoTimeline *timeline;
IdoMessageDialogMorphContext *context;
-#ifdef USE_GTK3
gtk_widget_get_preferred_size (GTK_WIDGET (dialog), NULL, &start);
-#else
- gtk_widget_get_requisition (GTK_WIDGET (dialog), &start);
-#endif
priv->expanded = TRUE;
gtk_widget_show (priv->action_area);
gtk_widget_show (priv->secondary_label);
-#ifdef USE_GTK3
gtk_widget_get_preferred_size (GTK_WIDGET (dialog), NULL, &end);
-#else
- gtk_widget_get_requisition (GTK_WIDGET (dialog), &end);
-#endif
gtk_widget_hide (priv->action_area);
gtk_widget_hide (priv->secondary_label);
@@ -379,11 +371,7 @@ ido_message_dialog_get_label (IdoMessageDialog *dialog, gboolean primary)
for (list = children; list != NULL; list = list->next)
{
-#ifdef USE_GTK3
if (G_TYPE_FROM_INSTANCE (list->data) == GTK_TYPE_BOX && gtk_orientable_get_orientation (list->data) == GTK_ORIENTATION_HORIZONTAL)
-#else
- if (G_TYPE_FROM_INSTANCE (list->data) == GTK_TYPE_HBOX)
-#endif
{
GList *hchildren;
GList *hlist;
@@ -393,11 +381,7 @@ ido_message_dialog_get_label (IdoMessageDialog *dialog, gboolean primary)
for (hlist = hchildren; hlist != NULL; hlist = hlist->next)
{
-#ifdef USE_GTK3
if (G_TYPE_FROM_INSTANCE (hlist->data) == GTK_TYPE_BOX && gtk_orientable_get_orientation (hlist->data) == GTK_ORIENTATION_VERTICAL)
-#else
- if (G_TYPE_FROM_INSTANCE (hlist->data) == GTK_TYPE_VBOX)
-#endif
{
GList *vlist;
GtkWidget *vbox = GTK_WIDGET (hlist->data);