aboutsummaryrefslogtreecommitdiff
path: root/src/idobasicmenuitem.c
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-07-24 00:40:20 +0200
committerRobert Tari <robert@tari.in>2020-07-24 00:40:20 +0200
commitc0bddf1331ada3bb817811ae4b92b2d95299fee2 (patch)
tree911f038a2d8ba4f5b033e9bd91950d93bb9e252a /src/idobasicmenuitem.c
parentf8f87bdc7d9991edb984579dd230cc244a3e97eb (diff)
downloadayatana-ido-c0bddf1331ada3bb817811ae4b92b2d95299fee2.tar.gz
ayatana-ido-c0bddf1331ada3bb817811ae4b92b2d95299fee2.tar.bz2
ayatana-ido-c0bddf1331ada3bb817811ae4b92b2d95299fee2.zip
Some refactoring to avoid warnings
Diffstat (limited to 'src/idobasicmenuitem.c')
-rw-r--r--src/idobasicmenuitem.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/idobasicmenuitem.c b/src/idobasicmenuitem.c
index cf57e7c..ab3ce87 100644
--- a/src/idobasicmenuitem.c
+++ b/src/idobasicmenuitem.c
@@ -4,16 +4,16 @@
* Authors:
* Charles Kerr <charles.kerr@canonical.com>
*
- * This program is free software: you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 3, as published
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 3, as published
* by the Free Software Foundation.
*
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranties of
- * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranties of
+ * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License along
+ * You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -230,11 +230,14 @@ ido_basic_menu_item_init (IdoBasicMenuItem *self)
IdoBasicMenuItemPrivate *p = ido_basic_menu_item_get_instance_private(self);
p->image = gtk_image_new ();
- gtk_misc_set_alignment(GTK_MISC(p->image), 0.0, 0.0);
+ gtk_widget_set_halign(p->image, GTK_ALIGN_START);
+ gtk_widget_set_valign(p->image, GTK_ALIGN_START);
p->label = gtk_label_new ("");
- gtk_misc_set_alignment (GTK_MISC(p->label), 0.0, 0.5);
+ gtk_widget_set_halign(p->label, GTK_ALIGN_START);
+ gtk_widget_set_valign(p->label, GTK_ALIGN_CENTER);
p->secondary_label = gtk_label_new ("");
- gtk_misc_set_alignment (GTK_MISC(p->secondary_label), 1.0, 0.5);
+ gtk_widget_set_halign(p->secondary_label, GTK_ALIGN_END);
+ gtk_widget_set_valign(p->secondary_label, GTK_ALIGN_CENTER);
w = gtk_grid_new ();
grid = GTK_GRID (w);