[gitg] Remove a gtk 3.0 deprecated function
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Remove a gtk 3.0 deprecated function
- Date: Sat, 9 Oct 2010 15:22:39 +0000 (UTC)
commit c05377a59c69bf1932e7f2a015599ba173d34380
Author: Patrick Deschenes <patrick deschenes gmail com>
Date: Mon Oct 4 20:52:05 2010 -0400
Remove a gtk 3.0 deprecated function
https://bugzilla.gnome.org/show_bug.cgi?id=631654
gitg/gitg-branch-actions.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/gitg/gitg-branch-actions.c b/gitg/gitg-branch-actions.c
index 2db8714..f725953 100644
--- a/gitg/gitg-branch-actions.c
+++ b/gitg/gitg-branch-actions.c
@@ -594,17 +594,22 @@ rename_dialog (GitgWindow *window, const gchar *oldname)
GtkDialogFlags flags = GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT;
dlg = gtk_dialog_new_with_buttons ("gitg",
- GTK_WINDOW (window),
- flags,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- "_Rename", GTK_RESPONSE_OK,
- NULL);
+ GTK_WINDOW (window),
+ flags,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ "_Rename", GTK_RESPONSE_OK,
+ NULL);
+
+#if ! GTK_CHECK_VERSION(2, 91, 0)
gtk_dialog_set_has_separator (GTK_DIALOG (dlg), FALSE);
+#endif
+
gtk_dialog_set_default_response (GTK_DIALOG (dlg), GTK_RESPONSE_OK);
GtkWidget *box = gtk_hbox_new (FALSE, 6);
GtkWidget *label = gtk_label_new (_ ("Name:"));
GtkWidget *entry = gtk_entry_new ();
+
gtk_entry_set_text (GTK_ENTRY (entry), oldname);
gtk_entry_set_width_chars (GTK_ENTRY (entry), 25);
gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]