[Xfce4-commits] [apps/xfburn] 10/42: Fixed more deprecated orientational UI elements
noreply at xfce.org
noreply at xfce.org
Tue Oct 15 02:21:53 CEST 2019
This is an automated email from the git hooks/post-receive script.
k a t a n a s t e e l p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfburn.
commit 8956597ff00c6547661a39170443e9dd4214cd99
Author: Rene Kjellerup <rk.katana.steel at gmail.com>
Date: Thu Sep 5 01:11:31 2019 -0700
Fixed more deprecated orientational UI elements
---
configure.ac.in | 2 +-
xfburn/xfburn-file-browser.c | 6 ++++--
xfburn/xfburn-notebook-tab.c | 5 +++--
xfburn/xfburn-progress-dialog.c | 2 +-
xfburn/xfburn-welcome-tab.c | 1 +
5 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/configure.ac.in b/configure.ac.in
index 012e56c..5bbc46a 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -38,7 +38,7 @@ dnl XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.24])
XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.20])
XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.32])
dnl XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.12.0])
-XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.13.0])
+XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.12.0])
dnl XDT_CHECK_PACKAGE([EXO], [exo-0.3], [0.3.4], [], [XDT_CHECK_PACKAGE([EXO], [exo-1], [0.3.100])])
XDT_CHECK_PACKAGE([EXO], [exo-0.3], [0.11.0], [], [XDT_CHECK_PACKAGE([EXO], [exo-2], [0.11.0])])
XDT_CHECK_PACKAGE([LIBGIO], [gio-2.0], [2.22.0])
diff --git a/xfburn/xfburn-file-browser.c b/xfburn/xfburn-file-browser.c
index 4d3b182..04ba7f4 100644
--- a/xfburn/xfburn-file-browser.c
+++ b/xfburn/xfburn-file-browser.c
@@ -55,7 +55,7 @@ static gboolean cb_focus_in_event (GtkWidget *widget, GdkEventFocus *event, Xfbu
/***************************/
/* XfburnFileBrowser class */
/***************************/
-static GtkHPanedClass *parent_class = NULL;
+static GtkPanedClass *parent_class = NULL;
GType
xfburn_file_browser_get_type (void)
@@ -76,7 +76,7 @@ xfburn_file_browser_get_type (void)
NULL
};
- file_browser_type = g_type_register_static (GTK_TYPE_HPANED, "XfburnFileBrowser", &file_browser_info, 0);
+ file_browser_type = g_type_register_static (GTK_TYPE_PANED, "XfburnFileBrowser", &file_browser_info, 0);
}
return file_browser_type;
@@ -96,6 +96,8 @@ xfburn_file_browser_init (XfburnFileBrowser * file_browser)
GtkWidget *scrolled_window;
GtkTreeSelection *selection;
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (file_browser), GTK_ORIENTATION_HORIZONTAL);
+
/* FS browser */
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
diff --git a/xfburn/xfburn-notebook-tab.c b/xfburn/xfburn-notebook-tab.c
index 3b82793..4e549ab 100644
--- a/xfburn/xfburn-notebook-tab.c
+++ b/xfburn/xfburn-notebook-tab.c
@@ -56,7 +56,7 @@ static void xfburn_notebook_tab_set_property (GObject *object, guint prop_id, co
static void cb_composition_close (GtkButton *button, XfburnNotebookTab *tab);
/* static member */
-static GtkHBoxClass *parent_class = NULL;
+static GtkBoxClass *parent_class = NULL;
static guint notebook_tab_signals[LAST_SIGNAL];
/************************/
@@ -81,7 +81,7 @@ xfburn_notebook_tab_get_type (void)
NULL
};
- type = g_type_register_static (GTK_TYPE_HBOX, "XfburnNotebookTab", &our_info, 0);
+ type = g_type_register_static (GTK_TYPE_BOX, "XfburnNotebookTab", &our_info, 0);
}
return type;
@@ -117,6 +117,7 @@ xfburn_notebook_tab_init (XfburnNotebookTab * tab)
{
XfburnNotebookTabPrivate *priv = XFBURN_NOTEBOOK_TAB_GET_PRIVATE (tab);
GtkBox *hbox = GTK_BOX (tab);
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (hbox), GTK_ORIENTATION_HORIZONTAL);
GtkWidget *img;
priv->label = gtk_label_new ("");
diff --git a/xfburn/xfburn-progress-dialog.c b/xfburn/xfburn-progress-dialog.c
index b404723..6ad5cbb 100644
--- a/xfburn/xfburn-progress-dialog.c
+++ b/xfburn/xfburn-progress-dialog.c
@@ -450,7 +450,7 @@ XfburnProgressDialogStatus
xfburn_progress_dialog_get_status (XfburnProgressDialog * dialog)
{
XfburnProgressDialogPrivate *priv = XFBURN_PROGRESS_DIALOG_GET_PRIVATE (dialog);
-
+
return priv->status;
}
diff --git a/xfburn/xfburn-welcome-tab.c b/xfburn/xfburn-welcome-tab.c
index 421ed90..9314677 100644
--- a/xfburn/xfburn-welcome-tab.c
+++ b/xfburn/xfburn-welcome-tab.c
@@ -173,6 +173,7 @@ create_welcome_button (const gchar *stock, const gchar *text, const gchar *secon
GtkWidget *button, *align, *image, *hbox, *label, *vbox;
button = gtk_button_new ();
+ gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
label = gtk_label_new (NULL);
gtk_label_set_markup_with_mnemonic (GTK_LABEL (label), text);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), button);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list