diff options
author | monsta <[email protected]> | 2016-12-02 00:45:36 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-12-02 00:50:14 +0300 |
commit | 0c27d18ab5efb721a2f02549767016c81fc6ce2c (patch) | |
tree | 76b7b89cface072e011a3757a833e9090bab44f2 /libslab/nameplate-tile.c | |
parent | 1aa83d45ebf9599c6d4d3f47211c3961282e98f0 (diff) | |
download | mate-control-center-0c27d18ab5efb721a2f02549767016c81fc6ce2c.tar.bz2 mate-control-center-0c27d18ab5efb721a2f02549767016c81fc6ce2c.tar.xz |
move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option
and require libmatekbd, libmate-desktop, marco, m-s-d >= 1.17
Diffstat (limited to 'libslab/nameplate-tile.c')
-rw-r--r-- | libslab/nameplate-tile.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libslab/nameplate-tile.c b/libslab/nameplate-tile.c index b9118130..fd703b34 100644 --- a/libslab/nameplate-tile.c +++ b/libslab/nameplate-tile.c @@ -218,13 +218,8 @@ nameplate_tile_setup (NameplateTile *this) priv->header_ctnr = GTK_CONTAINER (gtk_alignment_new (0.0, 0.5, 1.0, 1.0)); priv->subheader_ctnr = GTK_CONTAINER (gtk_alignment_new (0.0, 0.5, 1.0, 1.0)); -#if GTK_CHECK_VERSION (3, 0, 0) hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#else - hbox = gtk_hbox_new (FALSE, 6); - vbox = gtk_vbox_new (FALSE, 0); -#endif alignment = gtk_alignment_new (0.0, 0.5, 1.0, 0.0); @@ -253,9 +248,7 @@ nameplate_tile_drag_begin (GtkWidget * widget, GdkDragContext * context) { NameplateTile *this = NAMEPLATE_TILE (widget); GtkImage *image; -#if GTK_CHECK_VERSION (3, 0, 0) const gchar *name; -#endif (*GTK_WIDGET_CLASS (nameplate_tile_parent_class)->drag_begin) (widget, context); @@ -264,7 +257,6 @@ nameplate_tile_drag_begin (GtkWidget * widget, GdkDragContext * context) image = GTK_IMAGE (this->image); -#if GTK_CHECK_VERSION (3, 0, 0) switch (gtk_image_get_storage_type (image)) { case GTK_IMAGE_PIXBUF: @@ -283,23 +275,4 @@ nameplate_tile_drag_begin (GtkWidget * widget, GdkDragContext * context) default: break; } -#else - switch (image->storage_type) - { - case GTK_IMAGE_PIXBUF: - if (image->data.pixbuf.pixbuf) - gtk_drag_set_icon_pixbuf (context, image->data.pixbuf.pixbuf, 0, 0); - - break; - - case GTK_IMAGE_ICON_NAME: - if (image->data.name.pixbuf) - gtk_drag_set_icon_pixbuf (context, image->data.name.pixbuf, 0, 0); - - break; - - default: - break; - } -#endif } |