forked from AuroraMiddleware/gtk
Deprecate GtkLockButton
This is a very specialized widget, and should really just live with the applications where it is used.
This commit is contained in:
parent
d8cb11ec4a
commit
1ff8dad8ec
@ -2432,6 +2432,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
widget = (GtkWidget *)gtk_builder_get_object (builder, "record_button");
|
||||
g_object_set_data (G_OBJECT (window), "record_button", widget);
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
widget = (GtkWidget *)gtk_builder_get_object (builder, "lockbox");
|
||||
widget2 = (GtkWidget *)gtk_builder_get_object (builder, "lockbutton");
|
||||
g_object_set_data (G_OBJECT (window), "lockbutton", widget2);
|
||||
@ -2449,6 +2450,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
G_BINDING_SYNC_CREATE);
|
||||
gtk_lock_button_set_permission (GTK_LOCK_BUTTON (widget2), permission);
|
||||
g_object_unref (permission);
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
widget = (GtkWidget *)gtk_builder_get_object (builder, "iconview1");
|
||||
widget2 = (GtkWidget *)gtk_builder_get_object (builder, "increase_button");
|
||||
|
@ -114,3 +114,8 @@ Instead of gtk_show_uri(), you should use GtkUriLauncher or GtkFileLauncher.
|
||||
|
||||
This is an oldfashioned widget that does not do all that much anymore, since
|
||||
it no longer has a resize handle for the window.
|
||||
|
||||
## GtkLockButton is going away
|
||||
|
||||
This is an very specialized widget that should better live with the application
|
||||
where it is used.
|
||||
|
@ -28,6 +28,8 @@
|
||||
#include "gtkstack.h"
|
||||
#include "gtkprivate.h"
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
/**
|
||||
* GtkLockButton:
|
||||
*
|
||||
|
@ -32,11 +32,11 @@ typedef struct _GtkLockButton GtkLockButton;
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_lock_button_get_type (void) G_GNUC_CONST;
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GtkWidget *gtk_lock_button_new (GPermission *permission);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GPermission *gtk_lock_button_get_permission (GtkLockButton *button);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_lock_button_set_permission (GtkLockButton *button,
|
||||
GPermission *permission);
|
||||
|
||||
|
@ -31,6 +31,7 @@ gtk_deprecated_sources = [
|
||||
'deprecated/gtkiconview.c',
|
||||
'deprecated/gtkinfobar.c',
|
||||
'deprecated/gtkliststore.c',
|
||||
'deprecated/gtklockbutton.c',
|
||||
'deprecated/gtkrender.c',
|
||||
'deprecated/gtkshow.c',
|
||||
'deprecated/gtkstatusbar.c',
|
||||
@ -88,6 +89,7 @@ gtk_deprecated_headers = [
|
||||
'deprecated/gtkiconview.h',
|
||||
'deprecated/gtkinfobar.h',
|
||||
'deprecated/gtkliststore.h',
|
||||
'deprecated/gtklockbutton.h',
|
||||
'deprecated/gtkmessagedialog.h',
|
||||
'deprecated/gtkrender.h',
|
||||
'deprecated/gtkshow.h',
|
||||
|
@ -177,7 +177,7 @@
|
||||
#include <gtk/gtklistitemfactory.h>
|
||||
#include <gtk/deprecated/gtkliststore.h>
|
||||
#include <gtk/gtklistview.h>
|
||||
#include <gtk/gtklockbutton.h>
|
||||
#include <gtk/deprecated/gtklockbutton.h>
|
||||
#include <gtk/gtkmain.h>
|
||||
#include <gtk/gtkmaplistmodel.h>
|
||||
#include <gtk/gtkmediacontrols.h>
|
||||
|
@ -276,7 +276,6 @@ gtk_public_sources = files([
|
||||
'gtklistitemwidget.c',
|
||||
'gtklistlistmodel.c',
|
||||
'gtklistview.c',
|
||||
'gtklockbutton.c',
|
||||
'gtkmain.c',
|
||||
'gtkmaplistmodel.c',
|
||||
'gtkmediacontrols.c',
|
||||
@ -520,7 +519,6 @@ gtk_public_headers = files([
|
||||
'gtklistitem.h',
|
||||
'gtklistitemfactory.h',
|
||||
'gtklistview.h',
|
||||
'gtklockbutton.h',
|
||||
'gtkmain.h',
|
||||
'gtkmaplistmodel.h',
|
||||
'gtkmediacontrols.h',
|
||||
|
Loading…
Reference in New Issue
Block a user