diff options
author | monsta <[email protected]> | 2016-01-28 16:12:08 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-02-08 16:13:14 +0300 |
commit | 7de773a2060f70968eddf1562e33ff3a2b4fd5f0 (patch) | |
tree | 475a8b0117fec71093367ba3845c2e3b524987ae /src/util.cpp | |
parent | 406e9c33b9434ce398177a1137567e8c7abb78c8 (diff) | |
download | mate-system-monitor-7de773a2060f70968eddf1562e33ff3a2b4fd5f0.tar.bz2 mate-system-monitor-7de773a2060f70968eddf1562e33ff3a2b4fd5f0.tar.xz |
use x/y align functions for GtkLabel with GTK+ >= 3.16
Conflicts:
src/interface.cpp
src/procdialogs.cpp
src/sysinfo.cpp
src/util.cpp
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 226dc70..b512744 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -125,7 +125,11 @@ procman_make_label_for_mmaps_or_ofiles(const char *format, name = mnemonic_safe_process_name (process_name); title = g_strdup_printf(format, name, pid); label = gtk_label_new_with_mnemonic (title); - gtk_widget_set_halign (label, GTK_ALIGN_START); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (label), 0.0); +#else + gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); +#endif g_free (title); g_free (name); |